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 is rowtype?
Explain how you can copy a file to file content and file to pl/sql table in advance pl/sql?
What is anonymous block in sql?
Does truncate require commit?
Can we call stored procedure in function?
What are different sql data types?
What is an example of translating a date into julian format?
what is subquery? : Sql dba
What is clustered index sql?
What version is sql?
what are the other commands to know the structure of table using mysql commands except explain command? : Sql dba
what is a trigger? : Sql dba
Why do we use joins?
What is database migration?
What is full join?