second highest salary
802304Jun 2 2011 — edited Oct 14 2011Hello,
I am using below query for second highest salary
select * from a_test e where 2 =(select count(distinct sal) from a_test where e.sal<=sal)
can anybody plz describe how where 2=.... works
what is the meaning of 2