Lecture: Lecture 03 - Data Warehouse Conceptual and Logical Design
Core idea
A dimension may participate in distinct roles or admit simultaneous memberships. Shared hierarchies reuse one structure with role labels, while multiple edges represent several related members. A small stable set of categorical possibilities can instead be expressed as configuration flags.
Explanation and examples
PHONE CALL uses phone number as both caller and called, sharing district and usage descriptions. Originating district and receiving district answer different questions; reuse does not merge the endpoints.
A book can have several authors and an admission several diagnoses. These are not ordinary single-parent hierarchies. Group membership can overlap and multiplying facts through joins can duplicate measurements. The diagnosis-group illustration is a design option, not a general rule to collapse every collection of diagnoses.
Configuration attributes represent simultaneous categories with Boolean flags. The source’s videogame-sales example includes store characteristics such as toys, manga, collectibles and accessories. A store can have several.
Added example: Toys=Yes and Manga=Yes supports selecting stores offering both. One exclusive store-type value would lose that combination. Many changing categories make one-column-per-value unwieldy. The source’s <=10 guideline is not a mathematical limit.
Flags are not allocation weights; simultaneous memberships do not make overlapping category totals additive.
Related: Bridge Tables Allocation and Impact Queries, 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: 22-24.
Exam practice and transfer
Worked scenario
A warehouse designer is deciding how to represent shared hierarchies multiple edges and configuration attributes 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
An employee may have a sales role and a project role at the same time. Role-labelled edges preserve the different relationships, while a small set of yes/no options may fit a configuration dimension.
Retrieval questions
- Explain Shared Hierarchies Multiple Edges and Configuration Attributes 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.