unnested
Pro

© 2026 unnested

Built for learners, by learners

AboutPrivacy PolicyTerms of ServiceContactSuggest a feature
Learn SQL

CTEs

Pro

15 questions

Unlock all 15 questions with a Pro subscription.

Upgrade to Pro
OutputEasy
What does WITH actually filter?
Multiple choiceEasy
When a subquery makes you repeat yourself
OutputEasy
Which engineer makes the cut?
Multiple choiceEasy
Can a later CTE see an earlier one?
Multiple choiceMedium
How long does a CTE live?
OutputMedium
Aggregating before you join
Multiple choiceMedium
When you need the same result in two places
VocabularyMedium
What does WITH (CTE) do?
Multiple choiceHard
What makes a CTE recurse?
OutputHard
Where does the recursion stop?
Multiple choiceHard
CTEs and the optimizer
Multiple choiceHard
Five queries, one expensive aggregation
OutputHard
Walking a reporting chain with recursion
Multiple choiceHard
Guaranteeing a CTE runs only once
VocabularyHard
What makes a CTE recursive?