How do you retrieve the last N records from a table?
Answer Posted / nani
select * from emp a where &N > (select count(*) from emp b
where b.rowid > a.rowid)
N = No.of rows.
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
When is a declare statement required?
Can we want to pass a parameter payroll_id to this external pl/sql function, how do we do it?
What is difference between inner join and self join?
What is sql constant?
Is id a reserved word in sql?
What type of database is cloud sql?
Can function return multiple values in sql?
How many rows can sqlite handle?
Is it possible for a table to have more than one foreign key?
Can we use ddl statements in stored procedure sql server?
Is sqlexception checked or unchecked?
what is the command used to fetch first 5 characters of the string? : Sql dba
What is view explain with example?
what are integrity rules?
What is sql engine in oracle?