how to find nth highest salary
Answer Posted / yogesh
select e2.salary
from emp e1
join emp e2
on e1.salary >= e2.salary
group by e2.salary
having count(e2.salary) = n
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What do you understand by mirroring and mention the advantages of the mirroring?
What are sparse columns?
What do you know about system database? : SQL Server Architecture
What are trace files?
What part does database design plays a role in performance of an sql server-based application?
Define master database?
Explain what are the different index configurations a table can have?
What is sql injection? How to protect against sql injection attack?
How can you stop stored procedures from recompiling?
What is after dml trigger?
What are the different types of triggers in SQL SERVER?
What is dimension table? : sql server analysis services, ssas
Does a sql server 2005 select statement require a from?
can SSRS reports Cache results?
What is transaction server auto commit?