John Colton

Greenhorn
+ Follow
since May 21, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by John Colton

negative, Rownum is not determined till after the ordering is done.



I don't think this is correct. You have to use a subquery to get the results you want, because sorting happens after the rownum assignment as so:

select name, salary
from (select name, salary
from emp
order by salary desc)
where rownum<10

I remember having a question like this for the 007 cert exam.

John
21 years ago