How do you retrieve the last N records from a table?

Answer Posted / ajit

SELECT RN, Ename
FROM ( SELECT Rownum RN, Ename
FROM Emp )
WHERE RN = &Grecno;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is online transaction processing (oltp)? : Sql dba

530


What is field delimiter?

638


how do you control the max size of a heap table? : Sql dba

539


give the syntax of grant and revoke commands? : Sql dba

619


Can we join same table in sql?

532






what is a field in a database ? : Sql dba

547


what is table? : Sql dba

574


Does pdo prevent sql injection?

521


What is meaning of <> in sql?

588


Why plvtab is considered as the easiest way to access the pl/sql table?

623


what is the difference between ereg_replace() and eregi_replace()? : Sql dba

557


how to rename an existing table in mysql? : Sql dba

577


Explain the difference between triggers and constraints?

522


What is sql*plus?

575


What is the difference between the repeatable read and serializable isolation levels? : Transact sql

537