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 Statistical Functions - VAR, STDEVP, STDEV, VARP

SQL SERVER – Introduction to Statistical Functions – VAR, STDEVP, STDEV, VARP

January 20, 2008
Pinal Dave
SQL Tips and Tricks
SQL Function

VAR, STDEVP, STDEV and VARP are statistical functions that also fit the aggregate function definition. A quick AdventureWorks example shows all four.

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
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
SQL SERVER - 2005 - Change Compatibility Level - T-SQL Procedure

SQL SERVER – 2005 – Change Compatibility Level – T-SQL Procedure

January 12, 2008
Pinal Dave
SQL Tips and Tricks
Compatibility Level, SQL Scripts

The safe way to change compatibility level in SQL Server 2005: single user mode, sp_dbcmptlevel, then multi user again, and how to check it.

Read More
Previous 1 … 521 522 523 524 525 526 527 … 572 Next
  • Books
  • Testimonials
  • Privacy Policy

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