Subqueries & CTEs in SQL: interview exercises
Subqueries & CTEs in SQL: 6 test-checked interview exercises (Compare with a scalar subquery), each beside a worked example, with tests as you go. Free.
- Compare with a scalar subquery
- Filter with IN (subquery)
- Correlated subquery: latest per group
- EXISTS
- Name a step with a CTE
- Walk a hierarchy recursively
Each exercise pairs a worked example with a twin problem to solve in a real editor; the tests run the moment you do. Progress is saved in your browser, and in your account if you sign in.