Dimensional Modelling
- Facts and dimensions. Warehouses split facts: events with measures: from dimensions, the descriptive tables around them.
- The star schema. A star schema joins one fact table to its dimensions: a shape built for aggregation speed and readable queries.
- Slowly changing dimensions. When a customer moves cities, history matters: versioned dimension rows keep old reports true.
Analytical Transformations
- ELT pipelines. Modern analytics loads raw data first and transforms IN the warehouse: ELT, with SQL as the transform language.
- Layered models. Transformations build in layers: staging, cleaned, marts: each a tested SELECT over the last.
- Idempotent transforms. A transform must be rerunnable: same inputs, same tables out: recovery is just running it again.
Large-Scale SQL Patterns
- Partitioning. Partitioning splits a huge table by date or key: queries touch one slice, and old data drops cheaply.
- Columnar engines. Analytical engines store data by column, scanning only what the query names: aggregation gets startlingly fast.
- Cost thinking. Warehouse queries bill by data scanned: partition filters and column pruning are money, not style.
Before and after this level
- Before: Level 12: Security: Users, Roles and Permissions, SQL Injection Awareness, Secure Database Access.
- Next: Level 14: SQL Performance: Query Optimisation, Index and Schema Trade-Offs, Production Database Performance.
In the app each of these ideas is taught and then asked back, and the level ends with a checkpoint and flashcards. See Checkpoints and flashcards.
Frequently asked questions
What does SQL Level 13: Warehousing SQL cover?
Dimensional Modelling, Analytical Transformations, Large-Scale SQL Patterns: 3 lessons and 9 ideas.
What should I know before this level?
The level before it, Level 12: Security, which covers Users, Roles and Permissions, SQL Injection Awareness, Secure Database Access.