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: rownum kills Order... Is there a solution ?

Re: rownum kills Order... Is there a solution ?

From: Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk>
Date: Mon, 28 Jun 1999 16:00:15 +0100
Message-ID: <930582264.4113.1.nnrp-04.9e984b29@news.demon.co.uk>


It's a very small change in 8.1.5.
Get the ORDER BY into an in-line view,
then put the rownum outside the view.

8.1.5 features:
ORDER BY is legal in view definitions and CTAS

select * from
(
SELECT *
FROM T_PEOPLE P, T_STAFF S
WHERE PID = S.ID
ORDER BY P.LASTNAME
)
where rownum < 100

--

Jonathan Lewis
Yet another Oracle-related web site: www.jlcomp.demon.co.uk

Pablo Picasso wrote in message <37777f03.284226956_at_enews.newsguy.com>...
>Version is 8.1.5
>
Received on Mon Jun 28 1999 - 10:00:15 CDT

Original text of this message

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