Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Sql query

Re: Sql query

From: Jan Pruner <jan_at_pruner.cz>
Date: Wed, 26 Jun 2002 06:38:31 -0800
Message-ID: <F001.00488761.20020626063831@fatcity.com>


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

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US