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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Why the "where NOT EXISTS" does not work?

Re: Why the "where NOT EXISTS" does not work?

From: Roy Sette <kl7_at_rahul.net>
Date: 26 Oct 2001 18:06:05 GMT
Message-ID: <9rc8md$o4u$1@samba.rahul.net>


Our distinguished colleague, "C Chang" scribed:

>Which Proccess is more efficient?

>select a from A_Table
>minus
>select a from B_table

>or

>select a from test1
>where not exists
>(select 1 from test2
> where test1.a = test2.b)

The second construction is a correlated subquery, which I've been told is inefficient, owing to exhaustive comparisons. Does the 'minus' set operator do any optimization? - not sure.

-- 
Roy                 
kl7_at_rahul.net (USA)
Received on Fri Oct 26 2001 - 13:06:05 CDT

Original text of this message

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