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 Puzzle - A Quick Fun with Bit Wise Operator

SQL Puzzle – A Quick Fun with Bit Wise Operator

February 7, 2014
Pinal Dave
SQL Puzzle

A quick Friday SQL puzzle on the Bit Wise Operator: SELECT 10 & 10 returns 10, so why do 10 & 0 and 1 & 100 both return zero?

Read More
SQL SERVER - Start Services or Stop Services with PowerShell - Question to Readers?

SQL SERVER – Start Services or Stop Services with PowerShell – Question to Readers?

January 5, 2014
Pinal Dave
SQL Puzzle
PowerShell, SQL Server

A reader asks why you need the -Force flag to stop services with PowerShell but not to start them. I do not know the answer, so I am asking you.

Read More
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
Previous 1 … 5 6 7 8 9 10 11 … 22 Next
  • Books
  • Testimonials
  • Privacy Policy

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