Module 2.1: Aggregation and Grouping
Collapse rows into metrics: the aggregate functions, GROUP BY for per-category rollups, and HAVING to filter groups.
Module 2.2: Joining Tables
Combine source tables: inner joins on keys, LEFT joins that preserve rows, anti-joins for gaps, and self/outer joins.
Lesson 04
INNER JOIN and Join Keys
Combine two source tables on a matching key.
medium30 min
Lesson 05
LEFT JOIN and Preserving Rows
Keep all rows from the driving table even when the match is missing.
medium25 min
Lesson 06
Anti-Joins: Finding Missing Matches
Find records that have no counterpart: the DE's referential-integrity check.
medium25 min
Lesson 07
Self-Joins and RIGHT/FULL OUTER
Join a table to itself and reconcile two sources with outer joins.
hard30 min
Module 2.3: Set Operations and Subqueries
Stack and compare result sets with UNION/INTERSECT/EXCEPT, and nest queries as scalar, IN, and correlated subqueries.
Module 2.4: Readability and Conditional Logic
Make complex SQL legible with CTEs, and branch per-row with CASE expressions.