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 are user defined datatypes and when you should go for them? : Sql server database administration
What is the command used to recompile the stored procedure at run time?
How we create SQL Server 2005 Reporting Services ? Give me Sample
How to find index size for each index on table?
What is importing utility?
What types of Joins are possible with Sql Server?
Can an automatic recovery be initiated by a user?
How would you choose between a clustered and a non-clustered index?
Can we use pragma autonomous_transaction in trigger?
What is abstracting periodical?
How to bind a view to the schema of the underlying tables?
Suppose you want to implement the many-to-many relationships while designing tables. How would you do it?
What security features are available for stored procedure?
what is a correlated sub-query? : Sql server database administration
How to create a local temporary stored procedure?