What are the types of
Slowly Changing Dimension(SCD)?
Type 1 Slowly Changing Dimension(SCD):
The new information simply overwrites the original information. In other words, no history is kept.
Advantages:
- This is the easiest way to handle the Slowly Changing Dimension problem, since there is no need to keep track of the old information.
Disadvantages:
- All history is lost. By applying this methodology, it is not possible to trace back in history. For example, in this case, the company would not be able to know that Christina lived in Illinois before.
Type 2 Slowly Changing Dimension(SCD):
A new record is added to the table to represent the new information. Therefore, both the original and the new record will be present. The new record gets its own primary key.
Advantages:
- This allows us to accurately keep all historical information.
Disadvantages:
- This will cause the size of the table to grow fast. In cases where the number of rows for the table is very high to start with, storage and performance can become a concern.
Type 3 Slowly Changing Dimension(SCD):
There will be two columns to indicate the particular attribute of interest, one indicating the original value, and one indicating the current value. There will also be a column that indicates when the current value becomes active.
Advantages:
- This does not increase the size of the table, since new information is updated.
- This allows us to keep some part of history.
Disadvantages:
- Type 3 will not be able to keep all history where an attribute is changed more than once.