SQL pattern · P15 · 18 problems

Window functions and ranking

Graded problems on window functions and ranking, from easy to hard.

18 problems · about 3 h 10 min in all
Start with problem 01Rank each customer's orders by amount · 5 min
Learn it first · P15The rank that skips a number after a tieRANK() leaves a gap after ties, so the third distinct value lands at rank 4, not 3.Read the lesson →