How do you retrieve the last N records from a table?
Answer Posted / a g srikanth
SELECT *
FROM emp e
WHERE 1>
(SELECT COUNT(1) FROM emp f WHERE e.rowid<f.rowid
);
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
What is restrict in sql?
What is the file extension for sql database?
how does a local variable is defined using t-sql? : Transact sql
how to fetch common records from two tables? : Sql dba
what is the difference difference between procedure and packages
what is the difference between a having clause and a where clause? : Sql dba
What are the disadvantages of file system?
How to add, remove, modify users using sql?
Why is there a need for sqlcode and sqlerrm variables?
What is dynamic query?
What is the difference between rollback and rollback to statements?
Why is normalization important?
What are the key differences between SQL and PL SQL?
What is the syntax and use of the coalesce function?
How to return an array from java to pl/sql?