Menu

Course · Data platforms

Data modeling

Data modeling and warehousing: star schemas and grain, fact and dimension design, SCDs, Data Vault and other methods, dbt, semantic layers and incremental models.

Lessons
11
Interview questions
0
Projects & case studies
9
Reading time
~3 h

About this course

A warehouse is organised for questions, not for transactions. Data modelling decides how it answers them: measurements (facts) at a declared grain, descriptive context (dimensions) with keys that keep history, and definitions that stay consistent across teams.

Start with the star schema and the grain, then fact and dimension design, slowly changing dimensions and the harder patterns (bridges, hierarchies, late data). Finish with the methodologies (Kimball, Inmon, Data Vault, Anchor, medallion, Activity Schema) and modern practice with dbt, semantic layers and incremental models. Every lesson uses the same fictional online shop, Kestrel Market, with SQL verified on PostgreSQL.

Your progress

Saved in this browser only

Practise

Course structure

Lessons

Work through the lessons in order. Completed lessons show a tick; lessons you have opened are outlined.

Start here

The complete overview of the course in one read.

  1. Data Warehousing for Data EngineersA complete introduction to data warehousing: dimensional modelling, grain, facts and dimensions, slowly changing dimensions, data layout, ELT and serving trustworthy reports.Beginner2 min

Beginner

Core concepts you will use every day.

  1. Star, Snowflake and Galaxy Schemas and the GrainBuild a star schema for an online shop, declare the grain, snowflake a dimension, and query a galaxy of fact tables without double counting. Verified SQL.Beginner19 min
  2. Normalization, Denormalization and Wide TablesNormalise a messy orders extract step by step to 1NF, 2NF, 3NF and BCNF, then learn when to denormalise into stars or One Big Table, with verified SQL.Beginner17 min
  3. Data Lake vs Data Warehouse vs LakehouseCompare data lakes, data warehouses and lakehouses by storage, schema, transactions, cost and users, and learn which questions decide the right architecture.Beginner2 min

Intermediate

Patterns used in production pipelines.

  1. Fact Tables: Measures, Snapshots and Late-Arriving FactsDesign fact tables that sum correctly: additive and semi-additive measures, transaction, periodic and accumulating snapshots, factless facts and late data.Intermediate24 min
  2. Dimension Tables: Keys, Conformed, Junk, Degenerate and Role-Playing DimensionsDesign dimension tables that join reliably: surrogate and natural keys, conformed, degenerate, junk and role-playing dimensions, and inferred members for late data.Intermediate23 min
  3. Slowly Changing Dimensions: Types 0 to 6Every SCD type from 0 to 6 with rerunnable PostgreSQL loads: overwrite with MERGE, Type 2 versioning, point-in-time joins, mini-dimensions and hybrid Type 6.Intermediate29 min
  4. Partitioning, Clustering and Data LayoutHow partitioning and clustering let warehouses and lakehouses skip data, how to choose keys, and why too many small partitions or files make queries slower.Intermediate2 min

Advanced

Performance, internals and edge cases.

  1. Bridge Tables, Many-to-Many Relationships and HierarchiesModel many-to-many relationships with weighted bridge tables, and fixed or ragged hierarchies with recursive SQL and closure tables, without double counting.Advanced19 min
  2. Data Modeling Methodologies: Kimball, Inmon, Data Vault, Anchor and MedallionCompare Kimball, Inmon, Data Vault 2.0, Anchor modelling, medallion layers and Activity Schema with working tables for one shop, and learn when each fits.Advanced28 min
  3. Modern Data Modeling: Streaming Models, Semantic Layers and dbtModel streaming data, define metrics once in a semantic layer, structure a dbt project and build incremental models that are safe to rerun, with verified SQL.Advanced27 min

Projects and case studies

Apply what you learned and prepare material to discuss in interviews.

Projects

System design case studies

Resources

Related courses

Plan your learning

Search
Filter by type