Hi Varsha,
I have some confusion in your requirement.
You have 3 fields in your source system. Cust id, Tax id & Cus Name .
In the first step you are trying to changes either Cust id or Tax id.
In the second step you are trying to change Cus Name.
What is the key field here . It seems you are not maintaining the key field here. You should have primary key field in your source system.
Your requirement like this.
(INPUT)Souce TBL:
Cust id Tax id Cus Name
100 300 AAAA
OUTPUT:
if will change cust id or tax in source then in Target should be:
100 300 AAAA
101 300 AAAA
CUST ID is from the source field . It should not increase the value . You should use the surrogate key and increment the surrogate key.
As per my assumption In your input Cust_ID is the primary key column.
In the table comparison you should use CUST ID as key column and TAX id & CUS Name as comparable columns.
In the target table you should add the surrogate key addition to the source columns. Better to add the valid from, valid to date as maintaining history records .
Please share your correct requirement or share the atl with requirement and will correct the flow.
Thanks & Regards,
Ramana.