0% found this document useful (0 votes)
463 views3 pages

Types of Slowly Changing Dimensions

The document discusses slowly changing dimensions, which are dimensions in a data warehouse that store both current and historical data over time. It provides an example of a customer who moved from Illinois to California and how their record would need to be updated to reflect this change. There are typically four types of approaches to handling these changes - replacing the original record, adding a new record, adding a new attribute to track changes, or not tracking historical changes at all.

Uploaded by

Priyanka Gupta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
463 views3 pages

Types of Slowly Changing Dimensions

The document discusses slowly changing dimensions, which are dimensions in a data warehouse that store both current and historical data over time. It provides an example of a customer who moved from Illinois to California and how their record would need to be updated to reflect this change. There are typically four types of approaches to handling these changes - replacing the original record, adding a new record, adding a new attribute to track changes, or not tracking historical changes at all.

Uploaded by

Priyanka Gupta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd

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 :

You might also like