Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: newbie question about rownum
>Create a view of your sql statement, you cant use Order By in a view, but
you
>can GROUP BY <name> and it will do an order by.
>Then you select * from view_name where rownum<10;
You may do the same, without actually defining a view, using a subquery:
select temp.*
from
( select * from my_table where ... order by ... ) temp
Arjan. Received on Wed Aug 26 1998 - 12:24:22 CDT
![]() |
![]() |