TSQL Challenges were a contest founded by Jacob Sebastian in 2009. With his permission, I am re-publishing these puzzles to help SQL Server enthusiasts test and hone their query-writing skills. Here are the puzzles, followed by the original about page for the challenges.
TSQL Beginners’ Challenges
T-SQL Beginners’ Challenge #1 – Find the second highest salary for each department
T-SQL Beginners’ Challenge #2 – Fight Your Fear for Date Calculations
T-SQL Beginners’ Challenge #3 – Find the Factorial