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!

Delete with IN and EXISTS

652108Aug 12 2008 — edited Aug 12 2008
Hi,
I was suggested by one of the oracle forums member
that

DELETE FROM PYMT_DTL WHERE CLM_CASE_NO IN
(SELECT CLM_CASE_NO FROM TEMP_ARCHIVE1 );

is same as

DELETE FROM PYMT_DTL WHERE EXISTS (SELECT CLM_CASE_NO FROM TEMP_ARCHIVE1);


I see rows only get deleted with 2nd query


if both queries are same why is not 1st query deleteing rows ?

Thanks in Advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 9 2008
Added on Aug 12 2008
7 comments
22,674 views