how to find 5th row ?

Answer Posted / suresh babu

select * from table_name tn1 where 5 = (select count(rowid)
from table_name tn2 where tn1.rowid >= tn2.rowid);

This query,which is display the 5th row in table.

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are conditional predicates?

692


Why select is used in sql?

603


what is the difference between char and varchar data types? : Sql dba

631


What are different types of sql?

654


How do you write an index?

619






What is a Mapplet?

739


Where is sql database stored?

601


Why do we create stored procedures & functions in pl/sql and how are they different?

593


which operator is used in query for pattern matching? : Sql dba

650


What is mdb stand for?

638


Does pl/sql support create command?

661


what are integrity rules?

672


What are inner outer left and right joins in sql?

616


What is the usage of nvl function?

690


Define join and name different types of joins?

621