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
Three terracotta bowls, one empty, beside a blue tray with three circular recesses.

CROSS APPLY Aggregate: An Empty Input Can Still Return a Row

August 18, 2010
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Joins, SQL Scripts, SQL Server

CROSS APPLY aggregate behavior depends on whether the right-side query actually produces a row. I inspect that query before assuming unmatched customers disappear. An aggregate without GROUP BY can return a row even when its input is empty.

Read More
A muffin tin with one empty cup, while two muffins are squeezed together into the cup next to it.

Relational Division in T-SQL: Customers Who Bought Every Product

August 2, 2010
Pinal Dave
SQL Tips and Tricks
SQL Joins, SQL Scripts, SQL Server, SQL Sub Query

Solve relational division with counts and double NOT EXISTS, then handle duplicates, NULL values, empty requirements, and exact matching.

Read More
SQLAuthority News - 2 Sessions at TechInsight 2010 - June 29 - July 1, 2010

SQLAuthority News – 2 Sessions at TechInsight 2010 – June 29 – July 1, 2010

July 28, 2010
Pinal Dave
SQLAuthority News
DBA, MVP, Spatial Database, SQL Joins, SQLAuthority Author Visit

I presented two sessions at TechInsight 2010 in Kuala Lumpur, Malaysia, from June 29 to July 1, 2010. The best part of the trip was the people and their response.

Read More
SQL SERVER - The Self Join - Inner Join and Outer Join

SQL SERVER – The Self Join – Inner Join and Outer Join

July 8, 2010
Pinal Dave
SQL Tips and Tricks
SQL Joins, SQL Scripts

Is a Self Join an inner join or an outer join? It can be either. I build a small new example that shows Self Join as inner join and outer join.

Read More
SQL SERVER - Outer Join Not Allowed in Indexed Views

SQL SERVER – Outer Join Not Allowed in Indexed Views

June 29, 2010
Pinal Dave
SQL Performance
SQL Index, SQL Joins, SQL Scripts, SQL Statistics

Why is OUTER JOIN not allowed in indexed views? A reader was confused by the white paper answer, so I explain it with an example and ask for yours.

Read More
SQL SERVER - Default Statistics on Column - Automatic Statistics on Column

SQL SERVER – Default Statistics on Column – Automatic Statistics on Column

June 28, 2010
Pinal Dave
SQL Tips and Tricks
SQL Joins, SQL Scripts, SQL Server

Does a column need an index to have statistics? No. A quick demo shows automatic statistics on column data when AUTO_CREATE_STATISTICS is on.

Read More
Fresh, fitted replacement and set-aside tiles surround one coordinated restoration tray.

SQL SERVER – MERGE Insert Update and Delete with an Isolated Example

June 8, 2010
Pinal Dave
SQL Tips and Tricks
SQL Joins, SQL Scripts, SQL Server

Merge Operations can combine conditional inserts, updates and deletes. I inspect the plan before making any claim about scans or speed.

Read More
Previous 1 … 7 8 9 10 11 12 13 … 21 Next
  • Books
  • Testimonials
  • Privacy Policy

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