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: Improve performance on below query.

Re: Improve performance on below query.

From: Roman Zarzecki <rzarzecki_at_gis.com.pl>
Date: Wed, 23 Aug 2000 17:12:34 +0200
Message-ID: <8o0piu$bb4$1@news.ipartners.pl>

"James Williams" <techsup_at_mindspring.com> wrote in message news:39a3deb3.7977368_at_news.mindspring.com...
> Below is a query I need to get to perform better. It is using a lot of
> resources during fetch. ky_so_no on both tables has an index. Any
> hints!
>
> select count(*)
> from
> woa.serv_ord where ky_so_no not in ( select ky_so_no from
> woa.so_fld_ord_rao)

Try this:
SELECT count('1') FROM woa.serv_ord o
 WHERE NOT EXISTS (SELECT '1' FROM woa.so_fld_ord_rao i

                                        WHERE o.ky_so_no=i.ky_so_no);
Received on Wed Aug 23 2000 - 10:12:34 CDT

Original text of this message

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