can anybody tell us, how to select 2nd max salary from table. my id is ashish.akk@gmail.com
we have to use distinct key word there is a possibility that two person having same salary. select top 1 sry from (select distinct top 2 sry from emp order by sry desc)t1 order by sry asc