transporter-6SCDs

Slowly Changing Dimensions ..

circle-info

Overview

Slowly Changing Dimensions (SCD) - dimensions that change slowly over time, rather than changing on regular schedule, time-base. In a Data Warehouse, there is a need to track changes in dimension attributes in order to report historical data. In other words, implementing one of the SCD types should enable users assigning proper dimension's attribute value for given date. Example of such dimensions could be: customer, geography, employee.

There are many approaches how to deal with SCD. The most popular are:

  • Type 0 - The passive method

  • Type 1 - Overwriting the old value

  • Type 2 - Creating a new additional record

  • Type 3 - Adding a new column

  • Type 4 - Using historical table

  • Type 6 - Combine approaches of types 1,2,3 (1+2+3=6)

circle-info

Type 0 - value does not change over time

A type 0 slowly changing dimension is a dimension that never changes its attributes over time.

For example, the date of birth of a person is a type 0 attribute, because it does not change after it is recorded. A type 0 dimension can be used to store the original values of some attributes that are not relevant for historical analysis.

Last updated

Was this helpful?