Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Sql query
Roland,
This has just been covered in the past day or two. In this case the best solution, where a straight minus doesn't look applicable is the rather elegant (sorry I've forgotten whose it was) construct below.
select a.id, a.name
from table1 a,
table2 b
where a.id = b.id(+)
and b.id is null
Iain Nicoll
-----Original Message-----
Sent: Wednesday, June 26, 2002 2:13 PM
To: Multiple recipients of list ORACLE-L
Hallo,
anyone whom can give me an example on how to pick out field id and name from table one and get only the id's that exists in table one doesnt exist in table2.
Thanks in advance
Roland
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author:
INET: Roland.Skoldblom_at_ica.se
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists --------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists --------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Wed Jun 26 2002 - 09:03:29 CDT
![]() |
![]() |