How do you retrieve the last N records from a table?
Answer Posted / sunil bisht
Last 10 record from emp table
select * from emp where rowid<=(select max(rowid) from emp)
minus select * from emp where rowid in(select rowid from
emp where rownum<=3);
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
Is oracle sql free?
What are pl/sql packages?
What is structural independence and why is it important?
Can we update views in sql?
How do you select unique values in sql?
What is dml with example?
What is a clob in sql?
What language is oracle sql developer?
What do you mean by “trigger” in sql?
what is a constraint? : Sql dba
What is an invalid partition table?
What is the use of procedures?
Explain the types of joins in sql?
How many triggers can be applied to a table?
How do you write an index?