Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: NOT IN, SQL, Optimisation
Francois Baviere wrote:
>Hi,
>
>I worked quite a bit to find out a SQL sentence to look for some specific
>records in my database. I was quite surprise by the way NOT IN is working.
>However I have found something which work.... however it is very long....
If you wonder, why your query is still working:
you know that NOT IN is doing a full table scan for each value delivered by the subqueries?
Therefore i try not to use NOT IN but to use NOT EXISTS in stead of it.
Volker Received on Wed Nov 14 2001 - 14:26:35 CST
![]() |
![]() |