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!

Replace In with Exists

SamFisherApr 17 2012 — edited Apr 18 2012
Hello All,

I would like to replace IN with EXISTS in this example. Could you please help me achieving it.
SELECT * FROM emp WHERE empno IN (SELECT empno FROM emp)

I want to replace 'In' here with 'Exists'.
 
SELECT * FROM emp WHERE exists(SELECT 1 FROM emp ...?
Thx
Shank.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 16 2012
Added on Apr 17 2012
7 comments
1,876 views