7 Volumes · 84 Problems · One Complete Path
Volume 1 — BeginnerSingle-table filtering, sorting, and basic conditions. Your foundation: SELECT, WHERE, ORDER BY, and reading a query the way the database does.
Aggregation and grouping: GROUP BY, HAVING, CASE, and the NULL traps that quietly break beginner queries.
Joins and subqueries enter the picture: INNER JOIN, LEFT JOIN, IN, EXISTS, and the recurring NULL pitfalls hiding inside them.
Multi-table joins and Common Table Expressions (CTEs). Breaking a hard question into readable, composable steps.
Volume 5 — HardWindow functions: ROW_NUMBER, RANK, DENSE_RANK, running totals, and medians — the tools that separate casual users from strong ones.
Interview-grade problems: pivoting, recursive CTEs, graph traversal, cohort retention, and query sargability — where correctness alone is no longer enough.
Volume 7 — GeniusEverything at once: medians without window functions, gaps-and-islands, concurrent-event counting, hierarchies, and the smallest missing positive integer. The hardest patterns, one final time.
Every problem includes a prompt, sample input data, the expected output, a working solution, and a plain-English explanation. Every query tested against a real database before publishing.