Star Schemas & Data Cubes
7 min read.
Join a fact table to its dimensions, see what snowflaking costs, and watch a data cube turn a scan into a lookup.
Think of it this way: A fact table is the receipt roll from a shop: one line per sale, with codes instead of names. Dimension tables are the price list, the staff list and the calendar that explain the codes. A data cube is the end-of-month summary sheet: answering the questions it was designed for takes a glance, but a question it has no column for means going back to the receipts.
Also joined in other questions: 4 dates (month), 2 stores (city).
Star schema: one fact table in the middle (what happened) with keys pointing at dimension tables (who, what, where, when). Question: revenue by category.
Check your understanding
Answer from memory before you scroll back up. Pulling an idea out of your head is what makes it stay there.
Fact table or dimension table?
Sort each item by the table it belongs in.
Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.
Fact table
Drop items hereDimension table
Drop items hereQuiz
10 questionsWhat does a fact table hold?
Done with this lesson?
Sign in free to keep your progress, streak and quiz scores.