A Slowly Changing Dimension (SCD) is a data warehouse concept that handles dimension fields that slowly change over time. For example, post codes and phone numbers. These SCDs are put into 5 ‘Types’.
Unhelpfully the first type is Type 0:
Type 0 : Fixed Dimension – a dimension that doesn’t change such as your DOB.
Type 1: Overwrite – new value replaces the old value:

Type 2: Add New Row – the old value is kept and the new value added as a new row, another column is created that confirms which version is valid. This could be as shown below, but it could also include columns such as valid_to / valid_from.

Type 3: Add New Attribute – Like Type 2 the old value is kept and the new value added, however instead of a new row the value is included in a new column:

Type 4: History Table – Type 4 is like Type 2 in that the new value is added as a new row except that the old value/row is now moved to a ‘history table’:

And there you have it - all 5 Types of Slowly Changing Dimensions...

