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 do you understand by user-defined function in the sql server and explain the steps to create and execute a user-defined function in the sql server?
Where sql server user names and passwords are stored in sql server? : sql server database administration
wat wil hapn if we give the both read and deny read permission to user?
How to create a dml trigger using create trigger statements?
List all types of constraints in sql server?
What are the parts of a function?
How can windows applications connect to sql servers via odbc?
What is mssql?
How to get a list of columns using the "sp_help" stored procedure in ms sql server?
What is similarity and difference between truncate and delete in sql?
Explain filtered indexes?
What is a rownum?
Write the queries for commands like Create Table, Delete table, Drop Table etc.
Mention the differences between having and where clause.
Is a primary key unique?