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 - A Puzzle Part 3 - Fun with SEQUENCE in SQL Server 2012 - Guess the Next Value

SQL SERVER – A Puzzle Part 3 – Fun with SEQUENCE in SQL Server 2012 – Guess the Next Value

May 27, 2012
Pinal Dave
SQL Puzzle

My SEQUENCE puzzle part 3 involves some service related steps, so run it only on a test machine, never on production. Can you guess the next value?

Read More
Next value in a sequence.

SQL SERVER – A Puzzle Part 2 – Fun with SEQUENCE in SQL Server 2012 – Guess the Next Value

May 26, 2012
Pinal Dave
SQL Puzzle

Part 2 of fun with SEQUENCE: the same script as before, but without MINVALUE. Now guess the next value SQL Server 2012 returns after the cycle.

Read More
SQL SERVER - A Puzzle - Fun with SEQUENCE in SQL Server 2012 - Guess the Next Value

SQL SERVER – A Puzzle – Fun with SEQUENCE in SQL Server 2012 – Guess the Next Value

May 25, 2012
Pinal Dave
SQL Puzzle
SQL Scripts

A fun puzzle on SEQUENCE in SQL Server 2012: a sequence starts at 3 and cycles with a maximum of 5. Can you guess the next value it returns?

Read More
SQL SERVER - A Puzzle - Fun with NULL - Fix Error 8117

SQL SERVER – A Puzzle – Fun with NULL – Fix Error 8117

May 24, 2012
Pinal Dave
SQL Puzzle
SQL NULL, SQL Scripts, SQL Server

NULL is fun to ask about in interviews, since every answer I get is different. A short puzzle on NULL that raises Error 8117, and how to fix it.

Read More
Highlighted datetime2 value.

SQL SERVER – Saturday Fun Puzzle with SQL Server DATETIME2 and CAST

May 19, 2012
Pinal Dave
SQL Puzzle
SQL DateTime

A Saturday fun puzzle with DATETIME2 and CAST in SQL Server 2012. Run each script one at a time, guess the output, and learn something new.

Read More
SQL SERVER - Quiz and Video - Introduction to Hierarchical Query using a Recursive CTE

SQL SERVER – Quiz and Video – Introduction to Hierarchical Query using a Recursive CTE

May 8, 2012
Pinal Dave
SQL Puzzle
SQL in Sixty Seconds, SQL Scripts, SQL Server

Learn to write a hierarchical query using a recursive CTE with a short video and a quiz on an employee and manager table. Check your answer.

Read More
SQL SERVER - A Tricky Question and Even Trickier Answer - Index Intersection - Partition Function

SQL SERVER – A Tricky Question and Even Trickier Answer – Index Intersection – Partition Function

May 3, 2012
Pinal Dave
SQL Puzzle
SQL Index, SQL Scripts

Can one table, used once, give 2 join operators in an execution plan? Readers used ranking functions, and my own answer relies on index intersection.

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

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