how to find nth highest salary
Answer Posted / sitakanta rath
SELECT sal FROM
(
SELECT DENSE_RANK() OVER (ORDER BY sal DESC) AS rank, sal
FROM Emp
) T2
WHERE rank=@n
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Do you know data definition language, data control language and data manipulation language?
Explain aggregate functions?
Is the primary key column of a table an index in ms sql server?
Explain important index characteristics?
Why should you use or avoid select * statements?
What is query and its types?
what is the difference between count(*) and count(1) ?
What is the difference between a clustered index and a non-clustered index?
Explain left outer join and right outer join?
How do you improve the performance of a SQL Azure Database?
How to reaname table name without using sp_Rename in sql server..?
What is a linked server in sql server?
what are the types of indexes? : Sql server database administration
What are the types of containers in ssis?
How to select some specific columns from a table in a query in ms sql server?