The document discusses four types of Slow Changing Dimensions (SCD) used in data warehousing: Type 1, which overwrites existing values and loses historical data; Type 2, which adds new rows to maintain history but increases table size; Type 3, which adds columns for current and historical values but complicates tracking changes; and Hybrid SCD, which combines elements of Type 2 and Type 3 to preserve historical accuracy while allowing for current reporting.
Download as PPTX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
5 views
Chapter 4 Slow Changing Dimensions
The document discusses four types of Slow Changing Dimensions (SCD) used in data warehousing: Type 1, which overwrites existing values and loses historical data; Type 2, which adds new rows to maintain history but increases table size; Type 3, which adds columns for current and historical values but complicates tracking changes; and Hybrid SCD, which combines elements of Type 2 and Type 3 to preserve historical accuracy while allowing for current reporting.
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 5
CHAPTER 4.
SLOW CHANGING DIMENSIONS TYPE 1 SLOW CHANGING DIMENSIONS
• Overwrite the preexisting value with
the current assigenment
• Advantage : fast and easy
• Disadvantage : lose all history of
attribute changes with beat the goal of data warehouse
• Type 1 SCD appropriate if the attribute
change is a correction and no value in keeping the old description which need Example of Type 1 user input to determine the value of SCD retaining the old attribute value. TYPE 2 SLOW CHANGING DIMENSIONS
• Add a dimensions row
• Use surrogate key as unique identifier
• Advantage : a new dimension row
automatically partitions history in the Example of Type 2 fact table SCD • Disadvantage : since Type 2 SCD spawns new dimension rows, its bound to accelerated dimension table growth TYPE 3 SLOW CHANGING DIMENSIONS
• Add a dimensions column
• Advantage : allow us to see new and
historical fact data by either the new or prior attribute values Example of Type 3 • Disadvantage : hard to track impact SCD of numerous unpredictable changes HYBRID SLOW CHANGING DIMENSION
• Use when historical accuracy
surrounding unpredictable attribute changes need to be preserve while supporting the ability to report hisrotical data according to current value Example of Hybrid SCD • A new row issued to capture the Technique change (type 2) and a new columnd added to track the current assignment (type 3) where subsequent changes are handled as a type 1 response