Data Models
Data Models
SCD2
It will store the current record as well history SCD2 SCD2
EMP_ID NAME Year Loc
1 Praveen 2015 HYD
SCD 3
New Column will be added to maintainhistory
It will maintain only one (previous one) history
It will not add new records or rows
SCD 4
Current Table
EMP_ID NAME Current_Year
1 Praveen 2021
History Table
EMP_ID NAME Year
0 Praveen 2021
Praveen 2020
Praveen 2019
Praveen 2018
Praveen 2017
no scd 5
SCD 6
scd1 +scd 2+scd 3
SCD 0
ETL_RECORDFLAG
0N History
0N
1Y Current
Current_Loc OLd_Year Current_Loc
Pune 2019 HYD
Transational Syatem
Current_Loc
Pune
Current_Loc
Pune
Loc
Pune
HYD
BLG
DELHI
GOA