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 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
Gouache painting of a shelf of preserve jars with one empty jar and a bare gap holding a vermilion ribbon

Convert Empty String to NULL Date in SQL Server: Use NULLIF

May 6, 2021
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL NULL, SQL Scripts

To convert empty string to NULL in a date column, wrap the text in NULLIF before you cast it. A plain CAST returns 1900-01-01 and hides the problem. This post tests five expressions on six text values, including a real 1900 date, a run of spaces and a tab, and shows which ones stay correct.

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

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