MERGE would work if I am doing an UPDATE/INSERT aka UPSERT-ing. But it's only an update and no new insert should be created. For every record pulled from table B, there is an entry on A, because A helps to generate B.
Therefore when I am done, the changed record count should be the total number of records on B.
Comments 4
I don't tend to use WHERE EXISTS but I should try it. I tend to do subqueries like WHERE xyz in (select xyz from...)
Reply
Reply
Reply
Therefore when I am done, the changed record count should be the total number of records on B.
Reply
Leave a comment