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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Last inserted rows

Re: Last inserted rows

From: Mark G <someone_at_hot>
Date: Mon, 12 Jul 1999 08:57:00 +0100
Message-ID: <37899d77.0@145.227.194.253>


Try for example

select empno, ename
from emp e
where 50 > (select count(*) from emp e2 where e2.empno > e.empno)
order by empno;

M

Azhdin wrote in message <7maqr0$931$1_at_news3.isdnet.net>...
>Hi,
>
>How can i get the last inserted row in a table order by a column.
>(ex : the 50 last insert)
>
>If i use the rownum option or the rowid, the order by statement is
>not correct.
>
>Thank's
>
>Azhdin
>email : aboulahouat_at_algoba.com
>
>
Received on Mon Jul 12 1999 - 02:57:00 CDT

Original text of this message

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