Slowly Changing
Dimension
Attributes for a record varies over time
What is a Slowly Changing Dimension?
• A Slowly Changing Dimension (SCD) is a dimension that stores and manages both
current and historical data over time in a data warehouse. It is considered and
implemented as one of the most critical ETL tasks in tracking the history of dimension
records.
• Eg. Christina is a customer with ABC Inc. She first lived in Chicago, Illinois. So, the original
entry in the customer lookup table has the following record:
Customer Key Name State
1001 Christina Illinois
• At a later date, she moved to Los Angeles, California on January, 2003. How should ABC
Inc. now modify its customer table to reflect this change? This is the "Slowly Changing
Dimension" problem.
Types of Slowly Changing Dimension
• There are typically 4 ways to solve the given problem:
1. Type 1 : The new record replaces the original record. No trace of the old record exists.
Customer Key Name State
1001 Christina California
2. Customer
Type 2 : A newKey
record is added into theName
customer dimension table. Therefore,State
the customer is treated essentially as two people.
1001 Christina Illinois
1001 Christina California
3. Type 3 :