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 the least restrictive isolation level? : Transact sql
Is pl sql a programming language?
What is difference between inner join and self join?
Does mysql_real_escape_string prevent sql injection?
Can we use ddl statements in stored procedure?
Mention what is the plv (pl/vision) package offers?
Does oracle roll back the transaction on an error?
What is the difference between python and sql?
What is constant in pl sql?
What is sql partition?
Can you select everything, but 1 or 2 fields, without writer's cramp?
What is difference between procedure and trigger?
Can I copy :old and :new pseudo-records in/to an oracle stored procedure?
Why are indexes and views important to an organization?
What does pl sql stand for?