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 single lane of hurdles on a running track, each one higher than the last, the tallest one vermilion.

Twenty Practice Queries on One Small Schema

April 3, 2020
Pinal Dave
SQL Tips and Tricks
Ranking Functions, SQL Joins, SQL Server, SQL Training, Starting SQL

Work through twenty practice queries on one small sales schema, with expected results for filters, joins, totals, windows, and gaps.

Read More
Two separate canoes are connected by a rope at the lakeshore

How to Join Two Tables Without Using Join Keywords? – Interview Question of the Week #266

March 1, 2020
Pinal Dave
SQL Interview Questions and Answers
SQL Joins, SQL Scripts, SQL Server

Question: How to Join Two Tables Without Using Join Keywords?

Answer: In my life, I have attended many interviews as an interviewer.

Read More
A checkered cloth spread on market cobblestones as a makeshift stall, with a short row of lemons and one blood orange.

The VALUES Table Constructor: Using a List as a Table

December 24, 2019
Pinal Dave
SQL Tips and Tricks
SQL Joins, SQL Scripts, SQL Server, SQL Table Operation, Temp Table

Use a VALUES table constructor for inline mappings and joins, understand the INSERT row limit, and move larger reusable lists into tables.

Read More
Gouache painting of a small blue locomotive on a straight track beside a lamp post with a vermilion lever

Query Plan Join: Why a Query With No Join Shows One

December 14, 2019
Pinal Dave
SQL Performance
Execution Plan, SQL Index, SQL Joins, SQL Scripts

A query plan join can appear even when the query has no join, because SQL Server joins a nonclustered index to the table itself. This post reads the plan of a one table query, removes the join with a covering index, and finds the row count where SQL Server stops using lookups.

Read More
Two kinds of cups paired with three kinds of saucers form every combination

How to Write INNER JOIN Which is Actually CROSS JOIN? – Interview Question of the Week #250

November 10, 2019
Pinal Dave
SQL Interview Questions and Answers
SQL Joins, SQL Scripts, SQL Server

Question: How to Write INNER JOIN Which is Actually CROSS JOIN?

Experienced this question another day while working with a client.

Read More
Two neighboring boats are held in position by separate ropes

How to Use Multiple Hints Together for a Query? – Interview Question of the Week #241

September 8, 2019
Pinal Dave
SQL Interview Questions and Answers
Query Hint, SQL Joins, SQL Scripts, SQL Server

Question: How to Use Multiple Hints Together for a Query?
Answer: Of course, you can use multiple hints for a query. Here is an example of the same.

Read More
Several hands raising wine glasses over a dinner table, clinking every glass against each of the others.

Many-to-Many Merge Join and the Worktable in STATISTICS IO

April 18, 2019
Pinal Dave
SQL Performance
Execution Plan, SQL Joins, SQL Performance, SQL Server

Diagnose a many-to-many merge join and its worktable, verify true uniqueness, and compare join choices without changing legitimate matches.

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

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