on 2024 Feb 15 12:35 PM
Hi,
I have a table containing order rows. The table is populated from two different sources, and has a field that determines from which source the data came.
With one of the sources I use MERGE. Now I would like to use WHEN NOT MATCHED BY SOURCE THEN DELETE, but if I understand it correctly, this would also delete all records from the other source, as they would not definitely not match.
Is it possible, and if yes then how, to delete only records with the relevant DataSource, using this method?
Regards,
Johan
Never mind, I realized I achieve this with the ON clause.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
68 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.