unnested
Pro

© 2026 unnested

Built for learners, by learners

AboutPrivacy PolicyTerms of ServiceContactSuggest a feature
Learn SQL

Grouping

13 questions

OutputEasy
Tied aggregates and sort order
OutputEasy
What does grouping rows actually produce?
OutputEasy
How many rows survive after grouping?
OutputEasy
Composite key grouping - how many groups?
OutputEasy
Same product, different region - same group?

Sign in to save your progress.

OutputEasy
Using an alias in ORDER BY after grouping
VocabularyEasy
What does GROUP BY do?
OutputMedium
One number per department - which math?
Multiple choiceMedium
Non-grouped column in SELECT
OutputMedium
WHERE meets GROUP BY - order of operations
Multiple choiceMedium
Which SELECT is valid with GROUP BY dept?
OutputMedium
Filtering on a total - which groups survive?
Multiple choiceHard
GROUP BY vs DISTINCT