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
Two side by side cartoon panels in a children's magazine style, one child at a keyboard with a mess of tangled cables, the other at a tidy desk, no faces shown.

T-SQL Mistakes: Careless and Careful Write the Same Six Queries

October 26, 2026
Pinal Dave
SQL Tips and Tricks
SQL Cursor, SQL Function, SQL NULL, SQL Performance, SQL Scripts

T-SQL mistakes, in the two-panel format the children’s magazines used. Careless writes it one way. Careful writes it the other. Every pair was run on the same 1,200,000 rows on SQL Server 2025 and measured. One pair returned a wrong answer. One I stopped after fourteen minutes of CPU.

Read More
A dense grid of small tiles representing hundreds of SQL Agent jobs, colour coded into four categories, with most tiles grey for dead and a small cluster in red for failing silently

Nine Unusual Ways My Clients Use AI With SQL Server

August 6, 2026
Pinal Dave
AI
Oracle, SQL Index, SQL NULL, SQL Performance

Everyone writes about AI generating queries. Here are nine unusual ways my clients use AI with SQL Server, and I helped build every one.

Read More
A hand tying one ribbon to each blackberry bush along a lane that has at least one ripe berry.

EXISTS vs IN vs JOIN: Writing Semi-Joins

June 1, 2024
Pinal Dave
SQL Performance
SQL Joins, SQL NULL, SQL Server, SQL Sub Query

Compare EXISTS, IN, and JOIN for semi-joins, prevent duplicate customer rows, and handle NULL safely in exclusion queries.

Read More
nullable

SQL SERVER – Unique Indexes on Nullable Columns

August 17, 2023
Pinal Dave
SQL Tips and Tricks
SQL Index, SQL NULL

As the server allows only one null value in a column if a unique constraint is applied. Let us learn about Unique Indexes on Nullable Columns.

Read More
ISNULL and COALESCE

SQL SERVER – Difference Between ISNULL and COALESCE

June 15, 2023
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL NULL, SQL Server

SQL Server provides two commonly used functions, ISNULL and COALESCE, to address this requirement. Difference Between ISNULL and COALESCE

Read More
A walker on a birch woodland trail following red paint blazes, continuing through a stretch of trees with no marks.

IGNORE NULLS in SQL Server 2022: Carrying the Last Known Value Forward

November 8, 2021
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL NULL, SQL Server, SQL Server 2022

Use IGNORE NULLS for forward-filled readings, find the next known value, and compare the older running-count grouping method carefully.

Read More
A street bicycle rack with a different bicycle in each slot and several empty slots between them.

A Unique Constraint That Allows Many NULLs

October 7, 2021
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Index, SQL NULL, SQL Server

Allow many NULLs while enforcing unique non-NULL values with a filtered SQL Server index, required SET options, and tested queries.

Read More
1 2 3 4 … 13 Next
  • Books
  • Testimonials
  • Privacy Policy

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