If I have a base table customer with custid, name1, name2, add1, add2, begdate, enddate.
And I have a update on name2 and add2 then I want to capture the change and write in a staging table with the whole old record except the enddate. Enddate I want to put the current date.
Is that old record(old name2, old add2) exists in the base table or inserted table?
TIA
And I have a update on name2 and add2 then I want to capture the change and write in a staging table with the whole old record except the enddate. Enddate I want to put the current date.
Is that old record(old name2, old add2) exists in the base table or inserted table?
TIA