Back to course overview
SQL for Analysis
Advanced Queries
Answer multi-step questions with subqueries, organise them into readable CTEs, and combine result sets with UNION, INTERSECT and EXCEPT.
3 lessons ยท 1h 22m
- 33mSubqueriesReading
Use a query inside a query to filter by computed values, lists from other tables and per-group averages.
- 28mCTEsReading
Rewrite nested queries as named, top-to-bottom steps with WITH, and chain several steps into one readable query.
- 21mUNION and set operationsReading
Stack and compare result sets with UNION, UNION ALL, INTERSECT and EXCEPT, and know when each one is right.