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
Query Execution Plan.

SQL SERVER – Simple Puzzle with UNION – Part 2

September 6, 2013
Pinal Dave
SQL Puzzle
SQL Union clause

Another back to basics puzzle with UNION: run three queries using UNION ALL, ORDER BY and DISTINCT, then compare their execution plans.

Read More
SQL SERVER - Simple Puzzle with UNION

SQL SERVER – Simple Puzzle with UNION

September 5, 2013
Pinal Dave
SQL Puzzle
SQL Scripts, SQL Union clause

Try this simple puzzle with UNION and ORDER BY. Guess what each of the three queries returns, and see why one of them fails with Msg 108 and Msg 104.

Read More
Server Properties - Big.

SQL SERVER – Relationship with Parallelism with Locks and Query Wait – Question for You

June 25, 2013
Pinal Dave
SQL Puzzle

In server properties, Locks and Query Wait sit under the Parallelism section next to MAXDOP and cost threshold. I do not know why. Do you?

Read More
An abstract graph.

SQL SERVER – Puzzle #1 – Querying Pattern Ranges and Wild Cards

June 11, 2013
Pinal Dave
SQL Puzzle
Joes 2 Pros

Readers often ask about querying pattern ranges. Wild cards are the usual answer, but not everyone uses them well. Solve my puzzle for a chance to win a book.

Read More
Empty result in query.

SQL SERVER- Solution – SQL Puzzle of SET ANSI_NULL

May 28, 2013
Pinal Dave
SQL Puzzle
SQL Scripts

The solution to my Puzzle of SET ANSI_NULL: why IN returns a row but NOT IN returns nothing when the list has a NULL, and how SET ANSI_NULLS ON explains it.

Read More
SQL Server query window.

SQL SERVER – Solution to Puzzle – REPLICATE over 8000 Characters

May 17, 2013
Pinal Dave
SQL Puzzle
SQL Function

Here is the answer to my puzzle on REPLICATE over 8000 characters, with a quick recap of the script and why the lengths come out the way they do.

Read More
SQL SERVER - How to use xp_sscanf in Real World Scenario?

SQL SERVER – How to use xp_sscanf in Real World Scenario?

May 14, 2013
Pinal Dave
SQL Puzzle
SQL Scripts

I came across the extended stored procedure xp_sscanf and could not find a real world use for it. Here is how it works. Can you tell me where to use it?

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

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