how to retrive only second row from table?

Answer Posted / monika

SELECT * FROM(SELECT a.*,row_number() over(ORDER BY NULL)
rn FROM emp a)
WHERE rn=2

Is This Answer Correct ?    18 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many columns should be in an index?

524


What is oracle and pl sql?

663


How do you concatenate in sql?

552


What is the use of %rowtype?

537


What is a recursive stored procedure?

621






what is not null constraint? : Sql dba

553


Why join is faster than subquery?

603


What is acid property in a database?

586


how to calculate expressions with sql statements? : Sql dba

532


What is not null in sql?

580


1. is it possible to use the cursor atttibutes (%found ,% rowcount , %isopen , %notfound ) to our user defined cursor names ....... cursor cursor_name is select * from scott.emp if you use... cursor_name%found , %rowcount ,%isopen,%notfound...will it work... -------------------------- 2.what is the difference between the varray and index by table .. -------- 3. type type_name is table of number(8,3) index by binary_integer; identifier_name type_name; first , last , prior , next ,trim are the methods we can use it for the above type...simillary is there any way to apply for cursors... with thanks and regards..sarao...

1917


how to select unique records from a table? : Sql dba

636


How do I make sql search faster?

560


How do you write an inner join query?

517


What are inner outer left and right joins in sql?

519