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
A shuttlecock resting exactly on a court's boundary line, two rackets lying still on either side of the net.

Three-Valued Logic: TRUE, FALSE and UNKNOWN in a WHERE Clause

May 15, 2013
Pinal Dave
SQL Tips and Tricks
SQL NULL, SQL Operator, SQL Server, SQL Server 2022, SQL Sub Query

Understand three-valued logic in WHERE and CHECK, avoid NULL-poisoned NOT IN, and use SQL Server 2022 null-safe comparisons.

Read More
Error dialog explaining why a query does not throw an error.

SQL SERVER – Puzzle Involving NULL – Resolve – Error – Operand data type void type is invalid for sum operator

June 27, 2011
Pinal Dave
SQL Puzzle
SQL NULL, SQL Operator, SQL Scripts, SQL Server

SELECT SUM over a lone NULL throws Msg 8117: Operand data type void type is invalid for sum operator. Here is why it happens and how ISNULL fixes it.

Read More
SQL SERVER - Compound Assignment Operators - A Simple Example

SQL SERVER – Compound Assignment Operators – A Simple Example

June 5, 2008
Pinal Dave
SQL Tips and Tricks
SQL Operator, SQL Scripts, SQL Server, SQL Utility

SQL Server 2008 added Compound Assignment Operators like += and *=, which change a variable and assign it on one line. A simple example and the full list.

Read More
SQL SERVER - 2005 Comparison EXCEPT operator vs. NOT IN

SQL SERVER – 2005 Comparison EXCEPT operator vs. NOT IN

May 22, 2007
Pinal Dave
SQL Tips and Tricks
SQL Index, SQL Operator, SQL Scripts, SQL Server

The EXCEPT operator returns distinct rows from the left query with no match on the right, just like NOT IN. Both give the same plan, but EXCEPT reads simpler.

Read More
Previous 1 … 3 4 5 6
  • Books
  • Testimonials
  • Privacy Policy

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