I have two tables- T1, T2 with identical table structure. I want to insert new rows in T2 from T1 if they don't already exist in T2, and also update the existing data in T2 on the primary key may be. Can someone help me with the SQL for this please using MERGE.
TIA