RE: How to get first 5 Records then next 5 records til...
hello your answer is correct but the sequence is wrong
To get first five records
select aud_trn_issue_header.* rownum from aud_trn_issue_header where rownum < 6
To get the next five records
select aud_trn_issue_header.* rownum from aud_trn_issue_header where rownum < 11 minus select aud_trn_issue_header.* rownum from aud_trn_issue_header where rownum<6
RE: How to get first 5 Records then next 5 records til...
select d.amount from (select t.tadichallan_amt amount rank() over (orderby t.tadichallan_amt desc) as Rank1 from tae_challan_det t where t.tadichallan_amt isnotnull )d where Rank1 between '&n' and '&d'