Dimensional Modeling
Dimensional Modeling
Kitchenette
changes.
Even when there are adjustments to the prior numbers,
over time
In the source OLTP systems, the new values overwrite
the old ones
Overwriting of dimension table attributes is not always the
appropriate option in a data warehouse
The ways changes are made to the dimension tables
depend on the types of changes and what information
must be preserved in the data warehouse
Type 1 Changes: Correction of Errors
has no significance
The old value in the source system needs to be
discarded
The change in the source system need not be
preserved in warehouse
Type 1 Changes: Correction of Errors
Type 2 Changes: Preservation of History
Disadvantages
Schema less intuitive and end-users are put
off by the complexity
Ability to browse through the contents difficult
Degraded query performance because of
additional joins
THE SNOWFLAKE SCHEMA
Aggregate Fact Tables
Query 1: Total sales for customer number
12345678 during the first week of December
2000 for product Widget-1
No. of rows-7,90,large
Assume that there is at least one sale per product
per store per week
1. Query involves 1 product, 1 store, 1 week—only
1 fact table row
2. Query involves 1 product, all stores, 1 week—
300 fact table rows
3. Query involves 1 brand, 1 store, 1 week—500
fact table rows
4. Query involves 1 brand, all stores, 1 year—
7,800,000 fact table rows