Professional Documents
Culture Documents
7023T - S9 - R0
7023T - S9 - R0
Bina Nusantara
Outline Materi
Dimensional Design
• Degenerate Transaction Number
Dimension
• Schema in Action
• Schema Extensibility
• Dimension Normalization (Snowflaking)
• Surrogate Keys
5
Bina Nusantara
Extended Dimension Table Designs
• Many-to-Many Dimensions
6
Bina Nusantara
schema with a diagnosis dimension that can take only one value at a time
10
Bina Nusantara
A many-to-one-to-many schema that should not be queried with one
SELECT statement
Bina Nusantara University
11
Extended Dimension Table Designs
• Many-to-Many Dimensions
• Many-to-One-to-Many Traps
• Role-Playing Dimensions
– A role in a data warehouse is a situation where a
single dimension appears several times in the same
fact table. This can happen in a number of ways. For
instance, in certain kinds of fact tables, time can
appear repeatedly.
12
Bina Nusantara
Extended Dimension Table Designs
• Many-to-Many Dimensions
• Many-to-One-to-Many Traps
• Role-Playing Dimensions
• Organization and Parts Hierarchies
13
Bina Nusantara
Organization and Parts Hierarchies
18
Bina Nusantara
Organization and Parts Hierarchies
20
Bina Nusantara
Organization and Parts Hierarchies
22
Bina Nusantara
Organization and Parts Hierarchies
25
Bina Nusantara
Organization and Parts Hierarchies
When an aggregate table and a plan table share exactly the same
Bina Nusantara University dimensions, it may be reasonable to combine them into a single 27
physical table
Organization and Parts Hierarchies
30
Bina Nusantara
Organization and Parts Hierarchies
A sales fact table with transaction time recorded to the minute and
Bina Nusantara University
split off from the transaction date 31
Organization and Parts Hierarchies
33
Bina Nusantara
Organization and Parts Hierarchies
36
Bina Nusantara
Organization and Parts Hierarchies
38
Bina Nusantara
Organization and Parts Hierarchies
40
Bina Nusantara
Organization and Parts Hierarchies
44
Bina Nusantara
Organization and Parts Hierarchies
Bina Nusantara
Outline Materi
Dimensional Design
• Degenerate Transaction Number
Dimension
• Schema in Action
• Schema Extensibility
• Dimension Normalization (Snowflaking)
• Surrogate Keys
47
Bina Nusantara
Matrix Method for Getting Started
• Build the Matrix
– Do the Necessary Homework
– List the Data Marts
– List the Dimensions
– Mark the Intersections
48
Bina Nusantara
The Data Warehouse Bus Architecture matrix
for a telephone company
Bina Nusantara University
49
Use the Four-Step Method to Design Each
Fact Table
• Step 1. Choose the Data Mart
• Step 2. Declare the Grain
• Step 3. Choose the Dimensions
• Step 4. Choose the Facts
50
Bina Nusantara
Managing the Dimensional Modeling Project
51
Bina Nusantara
The telephone billing fact table diagram.
Disconnected dimensions are shown on both sides of the diagram
Bina Nusantara University
52
Managing the Dimensional Modeling Project
53
Bina Nusantara
Managing the Dimensional Modeling Project
54
Bina Nusantara
Fact table detail diagram showing dimension keys,
basic facts, and derived facts (with asterisks)
Bina Nusantara University
55
Managing the Dimensional Modeling Project
56
Bina Nusantara
Dimension table detail diagram
(relative cardinalities shown in parentheses)
Bina Nusantara University
57
Managing the Dimensional Modeling Project
• Data Warehouse Bus Architecture Matrix
• Fact Table Diagram
• Fact Table Detail
• Dimension Table Detail
– Attribute name
– Attribute definition
– Cardinality
– Sample data
– Slowly changing policy
– Many-to-many relationships
– Slowly changing dimensions
– Artificial attributes 58
Bina Nusantara
Many-to-many and slowly changing dimension attributes
61
Bina Nusantara
Managing the Dimensional Modeling Project
• Data Warehouse Bus Architecture Matrix
• Fact Table Diagram
• Fact Table Detail
• Dimension Table Detail
• Steps for the Dimensional Modeling Team
• Identifying the Sources for Each Fact Table and
Dimension Table
62
Bina Nusantara
Managing the Dimensional Modeling Project
• ….
• Identifying the Sources for Each Fact Table and
Dimension Table
– Understanding Candidate Data Sources
– Source Data Ownership
– Data Providers
– Detailed Criteria for Selecting the Data Sources
– Customer Matching and Householding
– Browsing the Data Content
– Mapping Data from Source to Target
63
Bina Nusantara
Managing the Dimensional Modeling Project
• …….
• Using a Data Modeling Tool
– Estimating the Number of Rows
– Designing for Aggregation
– Deciding What to Aggregate
64
Bina Nusantara
Managing the Dimensional Modeling Project
• Data Warehouse Bus Architecture Matrix
• Fact Table Diagram
• Fact Table Detail
• Dimension Table Detail
• Steps for the Dimensional Modeling Team
• Identifying the Sources for Each Fact Table and
Dimension Table
• When Are You Done?
• Using a Data Modeling Tool
65
Bina Nusantara