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 layered sea cliff with one red fossil shell set in the middle band and a hand pointing to it

Price in Effect on a Date: Querying a Price History Table

March 5, 2019
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Index, SQL Joins, SQL Server

Query a price history table for the price effective on each order date, enforce unique starts, and compare APPLY lookups with range joins.

Read More
A spring balancer supporting a linked guide between two fabric rolls

DATE_CORRELATION_OPTIMIZATION: Helping Joins on Related Dates

June 12, 2018
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Joins, SQL Server

SQL Server can learn that an order date and a ship date move together. Here is a small demo of the read savings and the trade you accept.

Read More
A red hat reflected three times in a tailor's three-panel mirror, a hand reaching for the real one

Join Duplicates: Stop Hiding Extra Rows With SELECT DISTINCT

June 13, 2017
Pinal Dave
SQL Tips and Tricks
Duplicate Records, SQL Distinct, SQL Group By, SQL Joins, SQL Server

Diagnose join duplicates before using DISTINCT, verify order and payment totals, and choose aggregation or EXISTS for the required result.

Read More
Two wood pieces joined using a physical joinery jig

What is the Difference Between Physical and Logical Operation in SQL Server Execution Plan? – Interview Question of the Week #122

May 14, 2017
Pinal Dave
SQL Interview Questions and Answers
Execution Plan, SQL Joins, SQL Scripts, SQL Server

Question: What is the Difference Between Physical and Logical Operation in SQL Server Execution Plan?

Read More
Rain boots with an attached strap beside boots without a strap

Nullable Foreign Keys: Optional Relationships and Outer Joins

January 2, 2017
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Joins, SQL Server

A nullable foreign key lets a row say no relationship yet. I show what the constraint checks, why an inner join drops those rows, and where WHERE bites.

Read More
Branches of a grapevine connect back to the same main stem on a trellis

What is a Self Join? Explain with Example – Interview Question of the Week #064

March 27, 2016
Pinal Dave
SQL Interview Questions and Answers
SQL Joins, SQL Scripts, SQL Server

What is a Self Join? It is a popular interview question for every developer. Here is a simple answer, whether it is inner or outer, and a practical use.

Read More
Two sieves handle repeated stones and one unmatched stone differently

Interview Question of the Week #043 – What is the Difference Between EXCEPT operator vs. NOT IN

October 31, 2015
Pinal Dave
SQL Interview Questions and Answers
SQL Joins, SQL Scripts, SQL Server

Compare EXCEPT operator vs. NOT IN using NULL and duplicate examples, add NOT EXISTS, and inspect actual SQL Server anti-join plans.

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

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