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

Home -> Community -> Usenet -> c.d.o.server -> Re: join query question

Re: join query question

From: Brian Tkatch <SPAMBLOCK.Maxwell_Smart_at_ThePentagon.com.SPAMBLOCK>
Date: Thu, 21 Jun 2001 16:03:37 GMT
Message-ID: <3b321a79.256948140@news.alt.net>

On Thu, 21 Jun 2001 15:37:19 GMT, vk02720 <nospam_at_newsranger.com> wrote:

>table A and table B both have a common field empnum.
>What is the most optimal query to get the data from table A which is not in the
>table B using empnum ?
>
>TIA
I would assume

SELECT * FROM Table_A WHERE NOT EXISTS
  (SELECT * FROM Table_B WHERE Empnum = Table_A.Empnum); Received on Thu Jun 21 2001 - 11:03:37 CDT

Original text of this message

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