How do you retrieve the last N records from a table?
Answer Posted / rajat
SELECT * FROM EMP A
WHERE ROWID NOT IN
(SELECT ROWID FROM RAJ WHERE ROWNUM<=(SELECT COUNT(1) FROM RAJ )-10);
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are views in sql?
Is postgresql a nosql database?
What are the different schemas objects that can be created using pl/sql?
What is the difference between subquery and correlated query?
What is sql injection vulnerability?
What is rowid in sql?
What packages(if any) has oracle provided for use by developers?
How to run sql statements through the web interface?
write an sql query to get third maximum salary of an employee from a table named employee_table. : Sql dba
What are the features of pl sql?
What is partition in sql query?
Is postgresql a server?
what is column? : Sql dba
What is normalization in a database?
Is sql sequential or random?