Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Question: Update with minus clause

mail8mzFeb 7 2013 — edited Feb 7 2013
Hello,

I am using Oracle 11.2, I have two tables with same structure. I need udpate the target table if there is no corresponding row in the source table. Here is the SQL I am thinking. However it does not work! Any suggestion on this SQL?

Update tb_trgt set (delFlag = 1)
Where (id, seq) in
(select id, seq from tb_trgt
minus
select id, seq from tb_src);
This post has been answered by €$ħ₪ on Feb 7 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 7 2013
Added on Feb 7 2013
2 comments
783 views