Lecture: Lecture 03 - Data Warehouse Conceptual and Logical Design
Core idea
Logical design translates the conceptual model into tables. A star keeps descriptive hierarchy attributes together; a snowflake separates selected dependencies into linked tables. Generated dimension keys can distinguish historical versions from source identity, while the fact key must respect the chosen grain.
Explanation and examples
A star Shop table can contain Shop_ID, Shop, City and Country. A snowflake moves City/Country to a separate table referenced by City_ID. Repetition decreases, but reading country requires another join.
The source favors stars because fact tables commonly dominate storage and joins can add query cost. This is contextual guidance, not a universal benchmark. Hierarchy dependencies remain meaningful in flattened dimensions.
Added surrogate-key example: warehouse keys 501 and 786 can describe Berlin and Munich versions of source customer C1. Facts referencing 501 preserve that descriptive state. The generated key identifies a warehouse record/version rather than replacing all business-identity information.
The source’s composed fact key of dimension references works when it uniquely identifies the grain. Product-shop-day identifies daily totals, not several separate purchases. Repeated order lines require line identity or other grain-appropriate detail.
The slide’s Week -> Month grouping needs an explicit assignment because ordinary weeks may cross months. Do not infer a valid dependency merely from a drawing.
Related: Star Schemas and Fact Tables, Historical Dimensions and Fact-Time Context, Dimensional Fact Model and Hierarchy Dependencies.
Source
Elena Baralis, Data warehouse design, Politecnico di Torino, DBMG, local DSTBD_3-DWprogConcLog-EN.pdf, 47 PDF pages. References use PDF page order. The source credits modeling material to Golfarelli and Rizzi, Data warehouse, teoria e pratica della progettazione, McGraw Hill, 2006. Original PDF and figures remain local under the copyright notice. Examples and qualifications marked as added are study explanations. Relevant PDF pages: 35-40.
Exam practice and transfer
Worked scenario
A warehouse designer is deciding how to represent star snowflake schemas and surrogate keys for a university reporting system. State the intended grain and business meaning first, then trace one example row or query and explain why the representation preserves the required analysis.
Concrete example
A star keeps product category beside product in one dimension. A snowflake separates category into another table. A surrogate key can distinguish two historical versions of the same source customer.
Retrieval questions
- Explain Star Snowflake Schemas and Surrogate Keys in your own words, then identify the problem it prevents in a real data project.
- Give a small example that would violate the concept, and explain how the violation would distort an analysis or query.
- Compare this concept with the nearest related idea in the note and state when each should be used.
These prompts are added study practice. They require explanation and transfer rather than copying a definition.