White belt
FreeAnswer a question about one table: select, filter, sort, count, per group and per month.
- The query
- Filtering
- Sorting and limiting
- Conditions
- Counting
- Capstone
The SQL language, from the first SELECT to recursive queries. One belt per level.
Answer a question about one table: select, filter, sort, count, per group and per month.
Work with real values, still on one table: types, NULL, text and numbers, regular expressions, dates, time zones, dirty data; then change rows and create tables.
Combine tables without losing or doubling rows: joins (a calendar spine too), subqueries (correlated too), CTEs, set operations.
Compare rows: window functions, ranking, offsets, running aggregates, frames; then load a table from a query, MERGE included.
Reshape data for reports: more joins and subqueries, subtotals, pivot, calendars, lists and JSON.
Handle the hard cases: real-world values (time zones, invisible characters, regular expressions), conditional MERGE, lateral and as-of joins, the rest of window functions (ranges, IGNORE NULLS, EXCLUDE).
Solve open problems and review other people's SQL: recursion, gaps, islands and sessions, reviews of whole queries.