How to fetch values in Oracle ?
How to fetch 3nd or 4th or soon highest salary from employee table in oracle ?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Pradeep ShetPosted Jan 20, 2015, 8:34 AM
I hope this may help you to ftch 3rd & 4th row in oracle
SELECT * FROM tbl where rowNum < 3
and id NOT IN
(
SELECT id FROM tbl
where rownum < 2)
In oracle, we have ROWNUM as pseudo column. Plz mark it as answered if it helped you.