how to retrive only second row from table?

Answer Posted / ayan

SELECT * FROM employees a
WHERE 2 = (SELECT COUNT(rowid)
FROM employees b
WHERE a.rowid >= b.rowid);

this will select the 2nd row.. if we write instead of 2 it
will select 8th row.... login to hr/hr schema and run the
code. it will work fine..

Is This Answer Correct ?    3 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is offset in sql query?

593


What is percent sign in sql?

713


What are schema-level triggers?

574


what does it mean to have quoted_identifier on? : Sql dba

675


What is an ndf file?

526






What are the two types of exceptions.

631


how to use in conditions? : Sql dba

509


How many types of cursors are available in pl/sql?

585


Why do we use sql constraints?

655


What is the most restrictive isolation level? : Transact sql

554


What is the usage of when clause in trigger?

565


What is the use of <> sql?

549


Can instead of triggers be used to fire once for each statement on a view?

537


What is sql character function?

539


what is difference between delete and truncate commands? : Sql dba

575