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 is the difference between syntax error and runtime error?

805


What are the types of functions in sql?

742


Is oracel sql developer written in java?

836


What is foreign key sql?

741


What is raw datatype in sql?

723






What are aggregate and scalar functions?

718


What is the difference between view and stored procedure?

685


What is rownum and rowid?

759


What is the use of prepared statement?

746


What is scope and visibility in PL/SQL?

767


How do I count duplicates in sql?

752


What is sorting in sql?

668


What is multiple partition?

690


What is a sql profiler?

764


Explain the types of joins in sql?

731