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: Create view with Order By

Re: Create view with Order By

From: John Higgins <JH33378_at_deere.com>
Date: Tue, 13 Apr 1999 22:46:10 -0500
Message-ID: <37140F82.7DC87881@deere.com>


Just remember that Oracle does not guarantee that the groups will be in any specific order. Yes, today's Oracle sorts the rows to accomplish the grouping. Tomorrow, a better algorithm may be found.

Rudy Zung wrote:

> Neil Moseley wrote in message <37135BDB.73449C6_at_iinet.net.au>...
> >G'day all,
> >
> >This statement works fine:
> >SELECT * FROM MYTABLE ORDER BY MYCOLUMN;
> >But this does not:
> >CREATE VIEW TEMP AS SELECT * FROM MYTABLE ORDER BY MYCOLUMN;
> >
> >If ORDER BY cannot be used when creating a view, is there a solution.
> >
> >Thankyou
> >
> >Neil Moseley
>
> You can't have an ORDER BY in a view; but, I believe you can use
> a side-effect of GROUP BY to accomplish an implicit sort within
> your view.
>
> ...Ru
Received on Tue Apr 13 1999 - 22:46:10 CDT

Original text of this message

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