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
SQL SERVER - Not Possible - Delete From Multiple Table - Update Multiple Table in Single Statement

SQL SERVER – Not Possible – Delete From Multiple Table – Update Multiple Table in Single Statement

September 27, 2012
Pinal Dave
SQL Tips and Tricks
SQL Joins

Can you delete from multiple table or update multiple tables in a single statement? No, and you should not try. Here is why, and what a reader pointed out.

Read More
A pasta roller holds fixed rollers while dough must pass through successive connected stages

INNER HASH JOIN: Why a Table Join Hint Also Fixes Join Order

August 11, 2012
Pinal Dave
SQL Performance
Execution Plan, Query Hint, SQL Joins, SQL Performance

A join hint in the FROM clause quietly fixes the join order. I show the warning, three plans side by side, and the softer query-level alternative.

Read More
A mother duck leading ducklings across a lawn, one duckling following another toward the pond

Modeling Friends and Followers With SQL Server Graph Tables

April 10, 2012
Pinal Dave
SQL Tips and Tricks
SQL Index, SQL Joins, SQL Server, SQL Server 2017

Build SQL Server graph tables for follows, mutual connections and friends of friends, then use shortest paths and compare a junction table.

Read More
Repeated bundles of loose bed slats sit beside the compact assembled bed frame

Triangular Joins: The Hidden Row Explosion in Self-Joins

April 6, 2012
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Group By, SQL Joins, Temp Table

A small grouped result can hide a huge pile of row pairs. Here is how to count them and what to do instead.

Read More
puzzle

SQL SERVER – Solution Part 2 – A Quick Puzzle on SQL JOIN and NULL – SQL Brain Teaser

February 17, 2012
Pinal Dave
SQL Puzzle
SQL Joins, SQL NULL, SQL Scripts, SQL Server

Part 2 of the solution to my puzzle on SQL Join and NULL. Readers still email me answers every day, so here are more of the good ones they sent.

Read More
SQL SERVER - INNER JOIN Returning More Records than Exists in Table

SQL SERVER – INNER JOIN Returning More Records than Exists in Table

February 9, 2012
Pinal Dave
SQL Puzzle
SQL Joins, SQL Scripts

Can an INNER JOIN returning more records than exist in a table be right? Jeff thought it was a bug. Our chat shows why it is possible and natural.

Read More
A wooden board with rows of small square openings and an oversized red piece leaning against it that cannot fit.

Indexed View Restrictions Quiz: Which Rule Blocks the Index?

January 8, 2012
Pinal Dave
SQL Puzzle
Clustered Index, SQL Error Messages, SQL Index, SQL Joins, SQL View

This Indexed View Restrictions Quiz asks which rule stops a unique clustered index on a view. The answer is the LEFT OUTER JOIN. A tested script shows the error, the working view, and what happens when each required rule is missing.

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

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