Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.tools -> Re: select first x rows from a query
Marion wrote:
>
> Try:
>
> SELECT * FROM
> (SELECT col1
> FROM mytable ORDER BY col3 DESC)
> WHERE ROWID<4;
>
> This requires a full table scan, so it may be slower than other options
> if the table is very large.
>
What version of Oracle are you on?
I don't think the above will work - have you tested this?
Do you mean ROWNUM instead of ROWID?
--Yunus
![]() |
![]() |