how to find nth highest salary
Answer Posted / anand patel.
It is a very generic and easy way to find the Nth higest
salary with there employee/s name.
select * from emp where salary =
(select max(salary) from emp where salary in
(select top (select (count(*)-(n-1))from emp) salary
from emp order by salary))
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
How to convert numeric values to integers in ms sql server?
What is the difference between cartesian product and cross join?
What are the character string functions supported by sql server 2005?
What is a transact-sql statement batch in ms sql server?
What happens if time-only values are provided as date and time literals?
What is global temp table?
How to declare and use cursor variables?
What is xdr?
Explain what is the difference between union and union all?
What is a partitioned view?
What is the use of attributehierarchyvisible ? : sql server analysis services, ssas
can an automatic recovery be initiated by a user? : Sql server administration
create index myindex on mytable(mycolumn) what type of index will get created after executing the above statement? : Sql server database administration
How to get the query of a table in sql server?
What is extended stored procedures?