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 null in pl/sql?

636


What is snowflake sql?

596


How do you write a subquery?

537


What is the starting oracle error number?

575


What is the difference between pl and sql?

553






How do you select unique values in sql?

519


what are string data types? : Sql dba

524


Mention what is the function that is used to transfer a pl/sql table log to a database table?

499


What is the plv (pl/vision) package offers?

629


Does sql profiler affect performance?

568


explain access control lists. : Sql dba

565


How can get second highest salary in sql?

527


What is the maximum size of sqlite database?

558


How do you declare a user-defined exception?

545


What is scope and visibility in PL/SQL?

608