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: Better way?

Re: Better way?

From: DA Morgan <damorgan_at_x.washington.edu>
Date: Mon, 31 Jan 2005 11:56:36 -0800
Message-ID: <1107201239.503555@yasure>


y1799_at_yahoo.com wrote:

> Hi ,
>
> my query does not work bad for the small tables but maybe exists
> something more productive:
> select F1 from A
> where F1 not in (select F1 from B)
>
> Thanks

Not exists might be far more efficient as might the minus Alan has suggesed. Run autotrace and timing and find out.

-- 
Daniel A. Morgan
University of Washington
damorgan_at_x.washington.edu
(replace 'x' with 'u' to respond)
Received on Mon Jan 31 2005 - 13:56:36 CST

Original text of this message

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