write the sql query to display 5th and 10th row in a table?

Answers were Sorted based on User's Feedback



write the sql query to display 5th and 10th row in a table?..

Answer / lakshmi reddy

select * from(select emp.*,rownum r from emp) where r=5 or r=10

Is This Answer Correct ?    8 Yes 1 No

write the sql query to display 5th and 10th row in a table?..

Answer / kart

select * from (select rownum as rn,aone.* from aone)
where rn in(5,10);

Is This Answer Correct ?    6 Yes 0 No

write the sql query to display 5th and 10th row in a table?..

Answer / gautam ramteke

select *
from(select rt.*,rownum r from (select * from gpr_employee
order by hire_date)rt)
where r in (5,8);

Is This Answer Correct ?    2 Yes 0 No

write the sql query to display 5th and 10th row in a table?..

Answer / gopal

By using rank or dense_rankl()

Is This Answer Correct ?    1 Yes 0 No

write the sql query to display 5th and 10th row in a table?..

Answer / harish

select * from emp where rownum<=&n;
if u give 5 insted of 'n' we get 5th record...

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More Cognos Interview Questions

What is use of Field Set present in toolbox?

1 Answers  


What is Cardinality

6 Answers   Cognizant, HCL,


What are the types of hierarchies?

0 Answers  


What are the steps involved in migrating CRN enviroment to Cognos 8?

3 Answers   BMW, Goyal Group, Mersan,


What are the components of report net?

0 Answers  






what are slowly changing dimensions? Why we are used scd?

0 Answers   IBM,


Explain is there any comparison available for cognos reportnet vs crystal reports?

0 Answers  


what is the difference between Cognos EP7 series and Congos8?

2 Answers   Hexaware,


What is minimum version of internet explorer to run the Cognos report.

3 Answers  


Explain the different stages in creating a report in cognos report net?

3 Answers   IBM,


What are products of cognos?

0 Answers  


what is the security module used in cognos?

2 Answers   Cognos, IBM,


Categories