Practice 80 hand-crafted SQL problems focused entirely on window functions, all free of charge.
Many challenges require CTEs.
Solve them all to restore glory to Xorthax's Galactic Trading Post.
PracticeWindowFunctions.com is a free platform to learn and practice SQL window functions through hands-on challenges.
Perfect for interview preparation, our SQL window function exercises cover ROW_NUMBER()
, RANK()
, LEAD()
, LAG()
, NTILE()
, and more.
Each problem includes hints and solutions to help you master advanced SQL techniques.
Work with ranking functions, compare rows with LEAD and LAG, explore FIRST/LAST/NTH value lookups, and tackle advanced patterns like gaps and islands. Everything is focused on SQL window functions.