unnested
Pro

© 2026 unnested

Built for learners, by learners

AboutPrivacy PolicyTerms of ServiceContactSuggest a feature
Learn SQL

Subqueries

Pro

16 questions

Unlock all 16 questions with a Pro subscription.

Upgrade to Pro
OutputEasy
Who beats the average?
OutputEasy
Filter by a department's budget
OutputEasy
Who isn't a manager?
Multiple choiceEasy
Why does this FROM subquery fail?
VocabularyEasy
What is a VIEW?
OutputMedium
The vanishing column trick
OutputMedium
Top earner per department
OutputMedium
Customers who ever placed an order
OutputMedium
Groups above a dynamic threshold
Multiple choiceMedium
Too many rows in the SELECT list
Multiple choiceMedium
Short-circuit vs set membership
Multiple choiceMedium
WHERE can't see what GROUP BY computes
OutputHard
Filter on an aggregate you just computed
Multiple choiceHard
NOT IN subquery with NULLs
Multiple choiceHard
Correlated subquery performance
Multiple choiceHard
When NOT IN silently drops all rows