unnested
Explore
Pro
Sign in
Learn SQL
CTEs
Pro
15 questions
Unlock all 15 questions with a Pro subscription.
Upgrade to Pro
Output
Easy
What does WITH actually filter?
Multiple choice
Easy
When a subquery makes you repeat yourself
Output
Easy
Which engineer makes the cut?
Multiple choice
Easy
Can a later CTE see an earlier one?
Multiple choice
Medium
How long does a CTE live?
Output
Medium
Aggregating before you join
Multiple choice
Medium
When you need the same result in two places
Vocabulary
Medium
What does WITH (CTE) do?
Multiple choice
Hard
What makes a CTE recurse?
Output
Hard
Where does the recursion stop?
Multiple choice
Hard
CTEs and the optimizer
Multiple choice
Hard
Five queries, one expensive aggregation
Output
Hard
Walking a reporting chain with recursion
Multiple choice
Hard
Guaranteeing a CTE runs only once
Vocabulary
Hard
What makes a CTE recursive?