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 clause?

618


What is java sql drivermanager?

557


what is the difference between mysql_fetch_object and mysql_fetch_array? : Sql dba

560


Is keyword pl sql?

566


what is the functionality of the function htmlentities? : Sql dba

530






What does bitemporal mean?

607


How is pl sql different from sql?

557


What is file based approach?

500


what is data control language? : Sql dba

597


Can you rollback after commit?

540


Explain the purpose of %type and %rowtype data types with the example?

564


What are all the different normalization?

570


Can we join same table in sql?

541


What is sqlservr exe?

484


Which sql statement is used to delete data from a database?

480