SyntaxFix
Write A Post
Hire A Developer
Questions
merge into x as target using y as Source on target.ID = Source.ID when not matched by target then insert when matched then update when not matched by source and target.ID is not null then update whatevercolumn = 'isdeleted' ;