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 row 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 both current and previous value of an attribute 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