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: "Not in" subquery

Re: "Not in" subquery

From: ACMIC <AACARMICHAEL_at_THEBLUEZONE.NET>
Date: Wed, 06 Jun 2007 15:07:05 -0700
Message-ID: <1181167625.534838.18280@i13g2000prf.googlegroups.com>


insead of using not in use not exists.... this is alot faster....

SELECT . . .
FROM emp E
WHERE NOT EXISTS ( SELECT X'

                       FROM   dept
                       WHERE  dept_no  = E.dept_no
                       AND    dept_cat = 'A'   );
Received on Wed Jun 06 2007 - 17:07:05 CDT

Original text of this message

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