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
New concepts of sql server 2005 use in your project.
How to create percentile function?
Can We Use Data-grids For Our Report In Ssrs?
How to start sql server browser service?
What is the process of indexing?
Explain stored procedure?
What the different components of Replication and what is their use?
Write query to return all rows sql?
What is sql or structured query language?
How data can be copied from one table to another table?
you added a row to a view, but the row is not shown on the view. Explain how this can happen, and how you can remedy the situation
What is right outer join in sql server joins?
What is bit data type?
What do you understand by SQL*Net?
What is dbcc command in sql server?