Question:
I have these two tables:

I want to capture in one table the difference between these 2 tables. Source table has changed columns for ID 1 and ID 3 with different statuses.
My expected table is like below:

I have tried to do it with
MERGE
function in T-SQL, but I can’t do it correctly. In my real data I have about 60 columns with statuses, so I want to learn how to do it.Answer:
here is one approachIf you have better answer, please add a comment about this, thank you!