How to write a query select top 2 record salary in employee
i want details of 2nd record details of employee
5 Answers
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
Sreekanth ReddyRank #726 · 3.2K reputationPosted Jun 18, 2015, 5:10 AM EDT
Sreekanth ReddyRank #726 · 3.2K reputationPosted Jun 18, 2015, 5:13 AM EDT
Ramesh MaruthiRank #937 · 2.2K reputationPosted Jun 18, 2015, 7:18 AM EDT
OVER (ORDER BY sal DESC) rn FROM emp e )
WHERE rn = 2;
Pankaj Kumar ChoudharyRank #80 · 24.4K reputationPosted Jun 18, 2015, 9:28 PM EDT
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted Jun 18, 2015, 10:44 PM EDT