SQL pattern · P20 · 14 problems

Pivoting and reshaping

Graded problems on pivoting and reshaping, from easy to hard.

14 problems · about 2 h 40 min in all
Start with problem 01Total revenue per category as columns · 7 min
Learn it first · P20The pivot that duplicates a customerAn extra GROUP BY column changes the grain, so one customer becomes several rows.Read the lesson →