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

Can we debug stored procedure?

514


Can we use delete in merge statement?

511


What are all the ddl commands?

619


What is the use of sqldataadapter?

529


What does varchar include?

517






What is tuple in sql?

538


How do I audit the sql sent to the server?

518


Is postgresql a nosql database?

529


how tsql statements can be written and submitted to the database engine? : Transact sql

525


What is the difference between the sql*loader and import utilities? : aql loader

593


How is a PL/SQL code compiled?

664


What is procedure in pl sql?

529


what are the differences between public, private, protected, static, transient, final and volatile? : Sql dba

546


what is cursor. write example of it. What are the attributes of cursor.

741


What is the use of index in sql?

548