how to find 5th row ?

Answer Posted / bikash khuntia

Hi Freinds,

I have seen the solution given. But in oracle if you will
select records from a table then everytime you will not
fetch the same squence of records. it will come
differently.Hence we cannot select the 5th row from a table
in oracle.

But the solution is that we can select 5th row from a table
in arranging the records in ascending or descending way by
a column and then select the 5th row as below:-

SELECT BIKK.SAL FROM
(SELECT ROWNUM RW,BIK.SAL SAL FROM (SELECT SAL FROM
TEMP_SAL ORDER BY SAL) BIK) BIKK
WHERE rw=6

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how many tables will create when we create table, what are they? : Sql dba

544


What are different types of statements supported by sql?

609


Are ddl triggers fired for ddl statements within a pl/sql code executed using the dbms.sql package?

620


what is view? : Sql dba

558


What is sql indexing?

555






How does cross join work?

504


What is the difference between a primary key and a unique key?

558


What is mdb stand for?

556


What are the basic sql commands?

550


What do you understand by pl/sql cursors?

551


What is the least restrictive isolation level? : Transact sql

565


What is field delimiter?

637


Why do we need databases?

568


What is auto increment?

582


How do you create a unique index?

574