Home » SQL & PL/SQL » SQL & PL/SQL » SQL Query
SQL Query [message #8487] Mon, 25 August 2003 05:48 Go to next message
sridhar
Messages: 119
Registered: December 2001
Senior Member
How to get the 4th and 5th record using select statement?
Re: SQL Query [message #8491 is a reply to message #8487] Mon, 25 August 2003 07:47 Go to previous messageGo to next message
Amit
Messages: 166
Registered: February 1999
Senior Member
select * from table where rownum <= 5
minus
select * from table where rownum <4
Re: SQL Query [message #8500 is a reply to message #8487] Mon, 25 August 2003 21:55 Go to previous message
Shailender Mehta
Messages: 49
Registered: June 2003
Member
select col1, col2, ..... coln, rnum
from ( select col1
,col2
,...
,coln
, rownum rnum
from

)
where rnum in (4,5)
Previous Topic: text column comparison
Next Topic: Structural Changes
Goto Forum:
  


Current Time: Thu Apr 25 11:51:19 CDT 2024