This month's discount Comprehensive Database Performance Health Check · Testimonials
SQLAuthority with Pinal Dave
Home
  • Consulting
    • Health Check
  • Free Videos
  • All Articles
    • AI
    • SQL Performance
    • SQL Tips and Tricks
    • Interview Questions and Answers
    • SQL Puzzle
    • SQL Video
    • SQLAuthority News
    • Personal
  • Books
  • Consulting
SQL SERVER - Introduction to Aggregate Functions

SQL SERVER – Introduction to Aggregate Functions

January 19, 2008
Pinal Dave
SQL Interview Questions and Answers
SQL Function

What are Aggregate Functions in SQL Server? The Books Online definition, the full list, and the NULL and GROUP BY rules that candidates often miss.

Read More
Two empty pale ceramic bowls beside a small terracotta pebble.

UNICODE: Supplementary Characters Depend on the Collation

January 18, 2008
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server, SQL String

UNICODE returns an integer for the first character, and supplementary-character support affects that integer. I make the collation explicit when interpreting those values. Otherwise the same visible input can produce a misleading comparison.

Read More
Three woven baskets hold nothing, folded cream linen and blue wool, respectively.

COALESCE Fallbacks: Empty Text Is Still a Supplied Value

January 17, 2008
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Server

COALESCE fallbacks keep empty text and spaces as supplied values. Apply an empty-value policy before choosing a display name.

Read More
A barn with a high open hayloft door, one ladder in plain view and two more half hidden around the side.

Auditing Who Has sysadmin

January 16, 2008
Pinal Dave
SQL Tips and Tricks
DBA, SQL Audit, SQL Login, SQL Server Security

Audit who has sysadmin in SQL Server, including direct members and Windows groups, then investigate nested access and forgotten logins.

Read More
Four open wooden toolboxes side by side, each holding a different kind of tool.

SQL SERVER – What is – DML, DDL, DCL and TCL – Introduction and Examples

January 15, 2008
Pinal Dave
SQL Tips and Tricks
Database

What are DML, DDL, DCL and TCL? A short introduction to the four groups of SQL commands, with examples like SELECT, CREATE, GRANT and COMMIT.

Read More
SQL SERVER - Time Out Due to Executing DELETE on Large RecordSet

SQL SERVER – Time Out Due to Executing DELETE on Large RecordSet

January 14, 2008
Pinal Dave
SQL Performance
SQL Scripts

Why does a DELETE on large recordset time out? When you want every row gone, use TRUNCATE instead, but keep in mind it resets the identity value.

Read More
Two ivory trays hold separate groups of small blue and cream ceramic dishes.

Conditional COUNT: ELSE 0 Counts Nonmatching Rows

January 13, 2008
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Reports, SQL Scripts, SQL Server

Conditional COUNT includes zero when CASE returns it. I compare an omitted ELSE with a zero branch before aggregating. A no-match group and an empty input expose the difference from SUM.

Read More
Previous 1 … 779 780 781 782 783 784 785 … 846 Next
  • Books
  • Testimonials
  • Privacy Policy

© 2006 – 2026 All rights reserved. pinal @ SQLAuthority.com