Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Sql query
SELECT ID,NAME FROM table1 a WHERE NOT EXISTS (SELECT 0 FROM table2 b WHERE
a.ID=b.ID AND a.NAME=b.NAME)
JP
On Wednesday 26 June 2002 15:13, you wrote:
> 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: Jan Pruner INET: jan_at_pruner.cz 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:38:31 CDT