Chapter V
Chapter V
Chapter V
Chapter V
Chapter Objectives:
• De-normalization
• Dimensional Modeling
• Start schema
• Snowflake schema
• Fact tables
• Dimension table
Designing and Implementing a Data Warehouse
1. Collapsing Tables.
• Two entities with a One-to-One relationship.
• Two entities with a Many-to-Many relationship.
2. Splitting Tables (Horizontal/Vertical Splitting).
3. Pre-Joining.
4. Adding Redundant Columns (Reference Data).
5. Derived Attributes (Summary, Total, Balance etc).
1. Collapsing Tables
1. Collapsing Tables
Advantage:
• Enhance security of data.
• Organizing tables differently for different queries.
• Reduced I/O overhead.
• Graceful degradation of database in case of table damage.
• Fewer rows result in flatter B-trees and fast data retrieval.
2. Splitting Tables
Vertical Splitting
• Splitting and distributing into separate files with repeating primary key.
• Infrequently accessed columns become extra “baggage” thus degrading performance.
• Very useful for rarely accessed large text columns with large headers.
• Header size is reduced, allowing more rows per block, thus reducing I/O.
3. Pre-Joining:
3. Pre-Joining: