Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Limit a result list
"NinjaToy" <LCIYQBBEQVFA_at_spammotel.com> wrote in message
news:3DEDD12E.59842C69_at_spammotel.com
> the rownum is assigned before the order by
>
Hm, so I did an extra SELECT-Statement around, but the two Statements still have not the same result (the rownum is separated from the order in this statements, isn't it?):
Statement (1):
A, B FROM MyTable WHERE Something ORDER BY A DESC)
A, B FROM MyTable WHERE Something ORDER BY A DESC)
Statement (2):
SELECT *
FROM
(SELECT A, B, ROWNUM rn
FROM (SELECT
A, B FROM MyTable WHERE Something ORDER BY A DESC)
-- Posted via Mailgate.ORG Server - http://www.Mailgate.ORGReceived on Wed Dec 04 2002 - 04:47:16 CST
![]() |
![]() |