I want to get nth highest salary in a table by first limiting result set to n top salaries first and then to reverse the result set and limiting it to 1.
I have used this query which is resulting into an error:-
select *
  from salaries
 where emp_no=(select * from salaries order by salary desc limit 2) order by salary asc limit 1;    
The error states that subquery return more than one row.
 
     
     
     
    