Choose the result that the SQL query returns.
DATABASE SKILLS · HANDS-ON STUDIO · V0.806
SQL GROUP BY Studio
Watch rows become groups. Understand each aggregate. Master WHERE vs HAVING.
challenges
Group workbench 8 rows → 3 groups
3 summary rows
Predict the grouped result.
Read a real dataset and SQL recipe, then choose the correct output. Progress is saved locally on this device.
From individual rows to answers.
Raw records can be hard to understand. Grouping turns them into summaries without losing sight of which source rows contributed to each answer.
SQL GROUP BY FAQ
What is the difference between WHERE and HAVING?
WHERE filters individual source rows before groups are formed. HAVING filters the completed groups after aggregate values are calculated.
Does COUNT(column) include NULL?
No. COUNT(*) counts input rows, COUNT(column) only counts non-NULL entries, and COUNT(DISTINCT column) counts unique non-NULL entries.
Does this run any SQL text?
No. This visualizer is a dedicated GROUP BY teaching engine that generates equivalent SQLite-style queries. It does not run arbitrary user SQL. Compare its results to a real SQL engine in the QA report.