Hi guys,
Lets say we have a table :
ID AGE STARTDATE ENDDATE
S7 29 25032019 -
S310 37 28032019 -
and an updated table is coming with these data :
ID AGE STARTDATE
S7 30 25032020
S310 37 28032019
The desire table would be like that :
ID AGE STARTDATE ENDDATE
S7 29 25032019 24032020
S7 30 25032020 -
S310 37 28032019 -
So this i want,is when the new update file has the same ID and different age,we want to keep history so we fill the enddate with the (startdate-1 of the newfile) and we create another row with the new updated values ,otherwise the data will be the same..
How can i implement this?
Thank you