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
The red arrow indicates the use of the LEAD and LAG window functions.

SQL SERVER – Puzzle to Win Print Book – Write T-SQL Self Join Without Using LEAD and LAG

November 16, 2011
Pinal Dave
SQL Puzzle
SQL Function, SQL Scripts

Win a print book: write a T-SQL self join that simulates LEAD and LAG, so you can learn a SQL Server 2012 feature even on an earlier version.

Read More
SQLAuthority News - Updates on Contests, Books and SQL Server

SQLAuthority News – Updates on Contests, Books and SQL Server

November 8, 2011
Pinal Dave
SQL Puzzle

My updates on contests and book giveaways in one place, including the extended deadline for the Joes 2 Pros combo set contest, now Nov 10th 7 AM.

Read More
Results window in sql server management studio.

SQL SERVER – A Simple Quiz – T-SQL Brain Trick

October 19, 2011
Pinal Dave
SQL Puzzle
SQL Scripts

A T-SQL brain trick: three SELECT statements are separated by lines of underscores, and running one of those lines alone gives Msg 2812. Can you explain why?

Read More
SQLAuthority News - SQL Server Quiz 2011 - All was well few moments before all went wrong - Reasons and Resolutions

SQLAuthority News – SQL Server Quiz 2011 – All was well few moments before all went wrong – Reasons and Resolutions

October 8, 2011
Pinal Dave
SQL Puzzle

An update on my SQL Server Quiz 2011 question, All was well few moments before all went wrong: I now give away two SQL Wait Stats print books.

Read More
Curved wooden reading nook with books.

Puzzle – Usage of New Index Hints – ForceSeek and ForceScan

September 23, 2011
Pinal Dave
SQL Puzzle
Query Hint, SQL Index, SQL Server

SQL Server Denali adds the FORCESCAN hint next to FORCESEEK. A weekend puzzle on these Index Hints: write a query where each one improves performance.

Read More
disaster

SQL SERVER – DBA Quiz 2011 – All was well few moments before all went wrong – Reasons and Resolutions

September 12, 2011
Pinal Dave
SQL Puzzle

My question in DBA Quiz 2011 comes from a real incident: a query that always worked fine suddenly did not. Share your reasons and resolutions.

Read More
SQL SERVER - Two Puzzles - Answer and Win USD 25 Gift Card

SQL SERVER – Two Puzzles – Answer and Win USD 25 Gift Card

June 30, 2011
Pinal Dave
SQL Puzzle
SQL Scripts

Two simple T-SQL puzzles on the REAL data type, 9E-40 and 9E+40. Answer both on my Facebook page for a chance to win a USD 25 gift card.

Read More
Previous 1 … 17 18 19 20 21 22 23 … 27 Next
  • Books
  • Testimonials
  • Privacy Policy

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