The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Databases
> Oracle Development
|
Difference between NOT IN,MINUS,NOT EXISTS and EXCEPT operators
Discuss Difference between NOT IN,MINUS,NOT EXISTS and EXCEPT operators in the Oracle Development forum on Dev Shed. Difference between NOT IN,MINUS,NOT EXISTS and EXCEPT operators Oracle Development forum discussing administration, Oracle queries, and other Oracle-related topics. Oracle is known as one of the most robust multi-platform relational databases available.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

November 19th, 2011, 05:02 PM
|
|
Registered User
|
|
Join Date: Aug 2011
Posts: 26
Time spent in forums: 9 h 23 m 15 sec
Reputation Power: 0
|
|
|
Difference between NOT IN,MINUS,NOT EXISTS and EXCEPT operators
Hi guys, can anybody tell me where difference lies between these operators or clause, & whether there is any "except" operator in oracle, i know other three are used bt dont think oracle uses "except" too..as far as i have seen "NOT IN", "MINUS" , "NOT EXISTS" are exactly similar? pls correct me if am wrong, preferrable with any example???
Thankss...
|

January 27th, 2012, 12:22 AM
|
 |
Humble Learner
|
|
Join Date: Jul 2007
Location: Bangalore, India
|
|
|
No oracle does not support "except" for any set operation.
and "NOT IN", "MINUS" , "NOT EXISTS" are not similar.
You need to read books for details of all that.
|

February 5th, 2012, 03:50 PM
|
|
Registered User
|
|
Join Date: Aug 2011
Posts: 26
Time spent in forums: 9 h 23 m 15 sec
Reputation Power: 0
|
|
Quote: | Originally Posted by debasisdas No oracle does not support "except" for any set operation.
and "NOT IN", "MINUS" , "NOT EXISTS" are not similar.
You need to read books for details of all that. |
Hi, Thanks for reply...okay can you also confirm..i think these three 'not in' , 'minus', 'not exists' are syntactically different..but where one out of these three can be used to achieve a purpose,logically another can also be used with similar logic, only syntax or usage would be different?
|

February 6th, 2012, 11:53 AM
|
|
Contributing User
|
|
Join Date: Jan 2006
Location: Carlsbad, CA
|
|
|
As debasisdas said: They are not the same and a good book on SQL will clarify the differences for you.
If you are having difficulty with the logic of a specific SQL statement then do post it here
together with a description of what it should be doing.
|

April 27th, 2012, 06:17 AM
|
|
Registered User
|
|
Join Date: Apr 2012
Posts: 3
Time spent in forums: 2 h 50 m 33 sec
Reputation Power: 0
|
|
|
Hi,
Kindly Read Oracle SQL documentation.
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|