internalsGet Pro

Module 05 · Lesson 3 of 12Pro

Dimensional modeling: facts and dimensions

Level
Intermediate
Topic
Data modeling for analytics
Reading time
17 min

When you finish this page you can

  1. Split a business activity into a fact table of measures and dimension tables of descriptive columns.
  2. Decide whether a column belongs on the fact or on a dimension, including prices and statuses.
  3. Choose between natural, sequential and hashed keys, and load facts so a missing match keeps its row.
  4. Tell additive measures from non-additive ones and aggregate each correctly.
  1. Join pitfalls: duplicated and missing rows16 min
  2. Normalized vs denormalized tables14 min

Fourteen tables, and none answers Daniel

is an online store in India. Every night, Meera, Kartly’s data engineer, loads the day’s orders from the store’s PostgreSQL read replica into one file on an 8 GB server. Daniel, who leads finance reporting, reads the results at 07:00.

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan