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: missing from one table

Re: missing from one table

From: Geoff Muldoon <gmuldoon_at_no.spam.scu.edu.au>
Date: Tue, 05 Oct 2004 00:08:15 GMT
Message-ID: <MPG.1bcc90fdeea8c1e6989690@news.asgard.net.au>


gooiditweg_at_sybrandb.verwijderdit.demon.nl says...
> <dderemer_nospam_at_agmc.org> wrote:
>
> >We want to make a query where we check table A for employee numbers and
> >compare that with table B. We would like to build a list of employees who
> >are in table A but not in table B. An ideas on how to build that type of
> >query?
> >
>
> select ... from a where empid not in (select empid from b)

Sybrand,

When might you suggest that the following would be more efficient?

select .... from a where empid in (select empid from a minus select empid from b)

Geoff M Received on Mon Oct 04 2004 - 19:08:15 CDT

Original text of this message

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