how to find nth highest salary
Answer Posted / parmesh m
select top 1 salary from Employee where salary in (
select top n salary from Employee
group by salary
having count(salary )< n+1
order by salary desc )
order by salary
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is @@error in sql?
What is oltp (online transaction processing)?
What is a dbms wizard?
What is rs.exe utility?
What is the stuff and how does it differ from the replace function?
Is null in sql server?
How to concatenate two character strings together?
What is bit data type?
What is table join?
Describe the left outer join & right outer join. : sql server database administration
How to verify a login name with sqlcmd tool?
What are the new scripting capabilities of ssms? : sql server management studio
What are the differences between char and nchar in ms sql server?
What is the purpose of the model database?
Can we linked SharePoint to a SQL database?