SQL Subqueries and CTEs
Start hereAnswer multi-step questions with subqueries and common table expressions, and combine result sets with UNION, INTERSECT and EXCEPT.
5 learning goals
- 1.Answer questions with nested subqueries
- 2.Compare rows with correlated subqueries and existence tests
- 3.Combine result sets with set operations
- 4.Organize queries with common table expressions
- 5.Query hierarchies with recursive CTEs