Dimensional Modeling
Kimball-style dimensional modeling: splitting the world into measurable business events and the descriptive context you slice them by. Interviewers hand you a business process and expect a star schema with a defensible grain within minutes.
on this pageshowhide
explore
- Facts, Dimensions & Grain6 questions
- Star vs Snowflake Schema6 questions
- Fact Table Types & Additivity6 questions
- Degenerate, Junk & Role-Playing Dimensions6 questions
- Conformed Dimensions & the Bus Matrix6 questions
- Hierarchies & Bridge Tables5 questions
- Aggregate Fact Tables & Rollups6 questions
questions
page 2 of 2Three teams already ship marts with their own customer dimensions - how do you conform them?
basics
~20 sMap the existing marts onto a bus matrix, pick the highest-leverage dimension, agree one durable business key and a master attribute set with a single owning team, then retrofit mart by mart - adding the conformed key alongside the local one before retiring the local one.
When would you publish a fact table only at a summarized grain rather than the atomic grain?
basics
~10 sAlmost never by choice. Publish only summaries when atomic rows are legally restricted, unavailable from the source, or genuinely unaffordable. Accept that any question below the summary grain becomes unanswerable until history is reloaded.
Order-to-cash could be modelled as transaction, periodic snapshot or accumulating snapshot facts — how do you choose?
basics
~20 sBuild the atomic transaction facts first — they are the audit record everything else derives from — then add a periodic snapshot only when state questions are otherwise expensive, and an accumulating snapshot only when cycle time and work-in-progress are recurring questions.
How do you set a house standard for dimension denormalization — star or snowflake — across dozens of marts?
basics
~20 sMake flat star dimensions the published default, allow normalization only in the layer beneath, and write the exceptions as testable criteria rather than taste. Enforce through review and automated model tests, and measure adoption instead of assuming compliance.
How does an aggregate fact table differ from a periodic snapshot fact table?
basics
~20 sAn aggregate fact table is derived — re-summing the atomic transaction rows reproduces it exactly. A periodic snapshot measures state at set intervals, such as month-end balances, which transactions alone cannot reproduce, and its measures are usually semi-additive.
What is an outrigger dimension, and when is attaching one to another dimension justified?
basics
~20 sAn outrigger is a dimension table referenced by a foreign key from another dimension table, such as a store dimension pointing at the shared date dimension for its opening date. It is a sanctioned, sparing exception to the flat star.
In a dimensional model, does unit_price belong in the fact table or the product dimension?
basics
~20 sIt depends on use. A price measured by the event and aggregated with other measures is a fact; a stable descriptor used to filter and group is a dimension attribute. In practice both are often stored, for different purposes.
What is a factless fact table, and what kinds of questions does it answer?
basics
~20 sA factless fact table records that something happened or that a condition applied, using only dimension keys and no numeric measures. It comes in two flavours: event tracking, such as student attendance, and coverage, such as which products were on promotion.
What is a fact constellation (galaxy) schema, and when does a model become one?
basics
~20 sA fact constellation, also called a galaxy schema, is several fact tables sharing the same dimension tables. Models become one as soon as a second business process is added — sales and inventory both pointing at the same date and product dimensions.
What is a shrunken conformed dimension, and what rule must it obey?
basics
~20 sA shrunken conformed dimension is a coarser version of a base dimension - fewer rows and fewer attributes - serving a fact table at a higher grain. It conforms only if its attributes are a strict subset of the base dimension's, carrying identical names and identical values.
How do you choose between a bridge table, an exploded fact grain and a primary-value column for a multi-valued dimension?
basics
~20 sDecide by what must stay summable. A bridge preserves the fact total and pays in fan-out and consumer complexity; an exploded grain is simple to query but destroys additivity of the original measure; a primary-value column is simplest and silently discards the other members.
showing 31–41 of 41