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: Performance problem - help appreciated.

Re: Performance problem - help appreciated.

From: Charlie Edwards <charlie3101_at_hotmail.com>
Date: 1 Apr 2004 01:01:15 -0800
Message-ID: <217ac5a8.0404010005.327b9ac7@posting.google.com>


"Anurag Varma" <avdbi_at_hotmail.com> wrote in message news:<0vAac.23524$u_2.5055_at_nwrddc01.gnilink.net>...
> >
> > I tried the rownum trick and it appears to work.
> >
> > But please tell me why!!!!
> >
> > CE
>
> The inclusion of rownum in the select clause forces oracle
> to execute the inner query first. Otherwise it tends to rewrite the query.
>
> Tom Kyte gives a good explanation of this in his book .. and maybe
> he might have explained this in his website also asktom.oracle.com
> ..
> Anurag

Excellent explanation (Tom Kyte couldn't have explained it better ;-))

I do have Tom's book (I must have been looking in the wrong place - it is a big book!) and I _always_ go to askTom as my first point of call - I just couldn't find thr right article.

Anyway, thanks very much for your help.

CE Received on Thu Apr 01 2004 - 03:01:15 CST

Original text of this message

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