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
How to select all records from the table?
Is sql considered coding?
What is the difference between clustered and non-clustered indexes?
Is truncate ddl or dml?
what are the 'mysql' command line arguments? : Sql dba
What is sql table?
What is auto increment?
Differentiate pl/sql and sql?
Is progress software supports to ( pl/sql )?
What is auto increment feature in sql?
What is the sql case statement?
What is Collation Sensitivity ? What are the various type ?
how to convert character strings to numeric values? : Sql dba
when is the use of update_statistics command? : Sql dba
When you have to use a default "rollback to" savepoint of plvlog?