Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: selecting the last 10 rows...
If the table is truly ordered
select whatever
from where_ever
where rownum < 11
order by ordered_column descending
Martin Trzaskalik (martin_at_ernie.mi.uni-koeln.de) wrote:
: ROWNUM offers a nice feature to select the first 10 rows from a
: ordered table.
: Is there an easy way of selecting the last 10 rows from a ordered
: table?
: Martin
--
While Alcatel may claim ownership of all my ideas (on or off the job),
Alcatel does not claim any responsibility for them. Warranty expired when u
opened this article and I will not be responsible for its contents or use.
Received on Sat Nov 28 1998 - 18:28:46 CST