how to find nth highest salary
Answer Posted / abhishek singh
SELECT TOP 1 salary
FROM dbo.emp
WHERE (salary IN
(SELECT DISTINCT TOP n salary
FROM dbo.emp
ORDER BY salary DESC))
ORDER BY salary
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
explain declarative management framework (dmf) in sql server 2008?
How can I add Reporting Services reports to my application?
How do I make a resultset scrollable?
What is 2nf normalization form?
Why truncate is ddl command?
How to generate create function script on an existing function?
What are the methods used to protect against sql injection attack?
What is cte (common table expression)?
Can group functions be used in the order by clause in ms sql server?
What happens if null values are involved in comparison operations?
How to move database physical files in ms sql server?
What is sql injection? How to protect against sql injection attack?
What are audit control procedures?
What is acid properties?
What is a trigger and its types?