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
You have several tables, and they are joined together for querying. The tables contain both clustered indexes and non clustered indexes to optimize performance, how should you distribute the tables and their indexes onto different file groups?
What are the drawbacks of reporting in ssrs?
Describe the left outer join & right outer join. : sql server database administration
While using a cursor, how can you differentiate between a deleted row and a row that has been inserted with null data values?
How to find Duplicate Records In table?
Explain the working of sql privileges?
How to use copy and concatenate commands in SQL?
What are different types of roles provided by ssrs?
What is pivot and unpivot?
What are the diifferences between the ms sql server vs mysql?
Define constraints and give an example of their use?
Do you know what is a with(nolock)?
Please explain that what are the basic functions for master, msdb, model, tempdb and resource databases? : SQL Server Architecture
What is scd (slowly changing dimension)? : sql server analysis services, ssas
What is difference between table aliases and column aliases? Do they affect performance?