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!

In vs. Exists with different results

user468Jun 22 2011 — edited Jun 30 2011
Hi all
I have a general question
Are there any cases where using the exists operator can produce different results/amount of results
Vs. using the IN operator ?
If yes please post an Example

the reason that i'm asking this it's because the exists returns true if the subquery returns at least one row and
it doesn't continue to check , but IN check all the values ,

this is critical for me to know , if i need to returns the amount of rows etc.
Thanks In advanced
Naama

Edited by: naama on Jun 21, 2011 11:52 PM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 28 2011
Added on Jun 22 2011
10 comments
638 views