Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Using ROWNUM with ORDER BY clause with a CASE statement
I hey tried your suggestion of:
select *
from (select a.*, rownum R
from ( select * from tablename order by whatever ) a where rownum <= MAX_ROW_YOU_WANT )
..and it works! At first it was giving me grief (hence my followup post) but I think I didn't have it keyed in right.
Thanks so much! Works like a champ!
Cheers,
Brett Received on Thu Nov 06 2003 - 10:32:29 CST