SQL merge not matched by target vs not matched by source
WHEN NOT MATCHED BY TARGET – You should use this clause to insert new rows into the target table. The rows you insert into the table are those rows in the source table for which there are no matching rows in the target. WHEN NOT MATCHED BY SOURCE – If you want to delete a … Read more