Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


display records from 5 to 9 using rowid or rownum

Answers were Sorted based on User's Feedback



display records from 5 to 9 using rowid or rownum..

Answer / vinay shankar

select * from emp
where rownum <=9
minus
select * from emp
where rownum <5

Is This Answer Correct ?    31 Yes 6 No

display records from 5 to 9 using rowid or rownum..

Answer / chiru

select * from (select rownum r ,a.* from emp a ) where r between 5 and 9

Is This Answer Correct ?    7 Yes 0 No

display records from 5 to 9 using rowid or rownum..

Answer / ramaraju

select
ename
from
emp
order by ename
offset 4 rows
fetch next 5 rows only;

try this answer oracle 12c introduced offset fetch rows.

Is This Answer Correct ?    1 Yes 0 No

display records from 5 to 9 using rowid or rownum..

Answer / hari

select * from (select rownum rm,id from emp where rownum<=9) where rn >=5)

Is This Answer Correct ?    4 Yes 5 No

display records from 5 to 9 using rowid or rownum..

Answer / satya

select empno,ename,sal from emp
group by rownum,empno,ename,sal
having rownum between 5 and 9;

Is This Answer Correct ?    2 Yes 9 No

Post New Answer

More SQL PLSQL Interview Questions

What is dml and ddl?

0 Answers  


What is the difference between explicit and implicit cursors in oracle?

0 Answers  


what is the difference between to_char and to_date functions?

10 Answers   Infosys,


What is the difference between subquery and correlated query?

0 Answers  


What is relationship? How many types of relationship are there?

0 Answers  


What is pls integer?

0 Answers  


What is serial sql?

0 Answers  


What are the 3 modes of parameter?

0 Answers  


How exception is different from error?

0 Answers  


What is a data manipulation language?

0 Answers  


what is a control file ? : Sql dba

0 Answers  


What are the two different parts of the pl/sql packages?

0 Answers  


Categories