Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Address last rows in a table

Address last rows in a table

From: Miguel Alves <miguel.alves_at_optimus.pt>
Date: Thu, 28 Jan 1999 20:13:37 -0000
Message-ID: <36b0c516.0@news.ip.pt>


Hi,

We have a table wich as rows without any sequence (we can't change this because this is an application package) . Our problem is that we have to retrieve the last n rows inserted in the table.

Something like the

select * from table1 where rownum < 10

but for the last 10 rows instead of the first 10.

What we realy want is to retrieve the rows using something like a rowtimestamp or sequential rowid. As if the table got a sequence.

Thanks in advance,
Miguel Alves Received on Thu Jan 28 1999 - 14:13:37 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US