How to display 9th record from EMP table?

Oracle Apps Interview QuestionsCategory: SQLHow to display 9th record from EMP table?
Questions Master asked 10 years ago

How to display 9th record from EMP table?

1 Answers
Shailender Thallam Staff answered 10 years ago

SELECT ename
FROM emp
WHERE rowid=
  (SELECT rowid FROM emp WHERE rownum<=9
  MINUS
  SELECT rowid FROM emp WHERE rownum <9
  );