I am trying to merge two tables using the MERGE statement, is there any way of deleting any records in the merged table that have neither been matched or updated?
logic is:
if matched leave it.
if not matched in source delete.
if not matched in target insert.
I know SQL has source/target matching, has oracle anything similar?
As far as I know there is no (one shot) SQL for this.
In PL/SQL you can do it, for example, in this (somehow ugly) way: