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
Does a join table need a primary key?
Can we want to pass a parameter payroll_id to this external pl/sql function, how do we do it?
Is primary key clustered or nonclustered?
What is the purpose of design view?
Is postgresql a nosql database?
what does it mean to have quoted_identifier on? What are the implications of having it off? : Sql dba
explain normalization concept? : Sql dba
What are some emotional triggers?
Can delete statement be rollbacked?
What is the usage of nvl function?
What are aggregate and scalar functions?
What language is oracle sql developer?
Name the different types of indexes in sql and define them.
How do I debug a stored procedure?
How can get second highest salary in sql?