How to fetch values in Oracle ?
How to fetch 3nd or 4th or soon highest salary from employee table in oracle ?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Pradeep ShetRank #595 · 4K reputationPosted Jan 20, 2015, 3:34 AM EST
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.