Slowly changing dimensions

  1. Type 1 overwrites the existing value with new value and does not retain history

    NameIDDescription
    laptop0xxxx
    phone1yyy

     

    NameIDDescription
    laptop0zzz
    phone1yyy
  2. Type 2 add a new role for the new value and maintains the existing row for historical and reporting purposes

    NameIDDescription
    laptop0xxxx
    phone1yyy

     

    NameIDDescription
    laptop0xxx
    phone1yyy
    laptop0zzz
  3. Type 3 allows storage of bith current value and previous vious of the dimension’s attributes in the same row, also it has the limited historical tracking. Last description go to prev Description column, updated description goes to current description column, change date reflects the modify time.

    NameIDPrev DescriptionCurrent DescriptionChange date
    laptop0xxxxzzz2024-04-29
    phone1yyymmm2024-05-01