We use cookies for site analytics. Accept to help us understand how the site is used. See our Privacy Policy for details.
Aggregation collapses many rows into per-group summaries with GROUP BY and functions like COUNT, SUM, and AVG, filtered after grouping with HAVING. Interviewers reach for it constantly - "revenue per category", "departments with more than N employees" - because it exposes whether you understand the difference between filtering rows (WHERE) and filtering groups (HAVING). Expect it combined with joins in almost every medium-difficulty screen.
21 problems across 4 schemas · 4 free for registered users. Each runs your query in an isolated SQLite sandbox with instant, graded feedback.
Keep the syntax at your fingertips with the free SQL quick references, then come back and solve.