how to find nth highest salary
Answer Posted / ankur bakliwal
I think this should work -
select top 1 salary from employee where salary in (select
distinct
top n salary from employee order by salary desc) order by
salary asc
Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
What function does a database engine serve in the sql server?
How to execute function in stored procedure sql server?
Explain microsoft sql server functions?
Do you know what is a linked server in sql server?
Explain data warehousing in sql server?
Describe in brief system database.
What is service broker? : sql server database administration
What are the reporting services components?
What do you understand by triggers?
Differentiate between a local and a global temporary table?
What is the difference between ROW_NUMBER and Ranking function in SQL SERVER?
What is the sql case statement used for?
How can I change procedure name in sql server?
How to update values in a table with update statements in ms sql server?
What is the purpose of the master database?