unnested
Pro

© 2026 unnested

Built for learners, by learners

AboutPrivacy PolicyTerms of ServiceContactSuggest a feature
Learn SQL

Distinct

Pro

8 questions

Unlock all 8 questions with a Pro subscription.

Upgrade to Pro
OutputEasy
Which row combinations collapse?
OutputEasy
How many rows does deduplication keep?
OutputMedium
Two NULLs walk into a SELECT DISTINCT...
Multiple choiceMedium
When would you pick GROUP BY over DISTINCT?
OutputMedium
Does NULL count as a unique value?
OutputHard
Two independent COUNT(DISTINCT) in one query
Multiple choiceHard
Does DISTINCT scope to the first column?
OutputHard
Which query computes totals per customer?