Subqueries and Common Table Expressions
By the end of this module you can build a long query in stages that each prove themselves, name those stages with CTEs, choose between IN, EXISTS, and a join deliberately, and avoid the NOT IN bug that silently returns nothing.
Units
- Unit 06.00: Building a query in testable stages
- Unit 06.01: CTEs: naming each step so it can be checked
- Unit 06.02: Correlated subqueries and their real cost
- Unit 06.03: The NOT IN with NULL bug
- Unit 06.04: When a CTE changes meaning, not just readability
