How do you retrieve the last N records from a table?
Answer Posted / swastik
select
* from
(
select e1.*
from emp e1
order by rownum desc
)
where rownum <= &n
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Why do we need databases?
What is difference between left and right outer join?
what is bcp? When does it used? : Sql dba
Where not exists in sql?
what are different types of collation sensitivity? : Sql dba
Is it possible to link two groups inside a cross products after the cross products group has been created?
Explain the order of sql statement execution?
What is string data type in sql?
What is package in pl sql with an examples?
what are the advantages of sql ? : Sql dba
What does an inner join do?
What is out parameter used for eventhough return statement can also be used in pl/sql?
Explain the steps needed to create the scheduled job?
When can we use the where clause and the having clause?
Are ddl triggers fired for ddl statements within a pl/sql code executed using the dbms.sql package?