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 pearl strands side by side on velvet, matched bead for bead, one pearl in the second strand a warmer shade.

Comparing Data Between Two Tables

January 29, 2014
Pinal Dave
SQL Tips and Tricks
Duplicate Records, SQL Joins, SQL NULL, SQL Scripts, SQL Server

Comparing data between two tables uses EXCEPT, full joins, and hashes, with explicit NULL and duplicate rules for trustworthy results.

Read More
A hand lowers one peg toward an accessible hole in a triangular solitaire board

Nested Loops Join: When It Is the Right Choice

January 18, 2014
Pinal Dave
SQL Tips and Tricks
Execution Plan, SQL Index, SQL Joins

Loops in a plan are not always the villain. Count the inner executions and the reads before you force another join type.

Read More
An egg carton with some empty cups kept in place and one red painted egg

Counting Rows per Month With Zero-Filled Gaps

January 1, 2014
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Joins, SQL Reports, SQL Server

Build monthly counts with zero-filled gaps, generate a complete month range, and retain empty categories through a reporting scaffold.

Read More
A row of garden chairs with red cushions, the chairs without cushions stacked by the shed.

A WHERE Filter That Turns Your LEFT JOIN Into an INNER JOIN

October 26, 2013
Pinal Dave
SQL Tips and Tricks
SQL Joins, SQL Scripts, SQL Server

Fix a LEFT JOIN whose right-table WHERE filter removes unmatched rows, inspect the inner-join plan, and search modules for candidates.

Read More
A tall van stopped at a hanging height bar at a car park entrance while small cars pass under

Bitmap Filters in Parallel Hash Joins: Reading Them in a Plan

October 15, 2013
Pinal Dave
SQL Performance
Execution Plan, Parallel, SQL Joins, SQL Server

Read bitmap filters in parallel hash join plans, compare fact scan output, and distinguish early row rejection from guaranteed savings.

Read More
Queue barriers with red ropes zigzagging across an empty hall toward a nearby door.

OPTION (FORCE ORDER): When a Join Order Hint Helps and Hurts

October 12, 2013
Pinal Dave
SQL Performance
Execution Plan, Query Hint, Query Store, SQL Joins, SQL Server

Test OPTION (FORCE ORDER) against real join plans, see when fixed table order helps or hurts, and apply a reversible Query Store hint.

Read More
Three interlocking gears on a pale board, two wooden and one gray, the middle gear with a red center.

Joining Three Tables: Following the Keys Step by Step

August 23, 2013
Pinal Dave
SQL Tips and Tricks
Database, SQL Constraint and Keys, SQL Joins, SQL Scripts

Joining three tables is easier when you add one join at a time and check the row count after each step. This post builds a small bookshop query from Customers, Orders and OrderLines, adds the book titles, and shows how a missing join condition multiplies rows.

Read More
Previous 1 … 3 4 5 6 7 8 9 … 21 Next
  • Books
  • Testimonials
  • Privacy Policy

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