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: Order of execution of Select clauses

Re: Order of execution of Select clauses

From: <xhoster_at_gmail.com>
Date: 10 Feb 2006 22:40:20 GMT
Message-ID: <20060210174032.011$RP@newsreader.com>


"Pria" <Pria79_at_gmail.com> wrote:
> Hi All,
>
> Please correct me if i am wrong.
>
> Internally, the order of execution for a SELECT statement is as
> follows:
> FROM clause
> WHERE clause
> SELECT clause
> ORDER BY clause

Clauses are not executed at all, and therefore there is no order for them to be executed in.

> and Oracle allows Order by the table columns that are not included in
> the SELECT clause.
>
> If Order By clause is executed after select clause in select statement,
> then how does Oracle Order by columns that are not included in the
> SELECT clause internally.

Accepting a false (or non-sensical) premise can lead to all kinds of bizarre conclusions.

Xho

-- 
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service                        $9.95/Month 30GB
Received on Fri Feb 10 2006 - 16:40:20 CST

Original text of this message

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