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
How can you check the version of sql server?
Define outer join?
What is a group function explain with an example?
What is extended stored procedures?
in the physical file layout, where should the transaction log be stored in relation to the data file?
How to use “drop” keyword in sql server and give an example?
What does it mean to normalize data?
What is the minimum and maximum number of partitions required for a measure group? : sql server analysis services, ssas
What is lock escalation and what is its purpose?
What is a non-clustered index?
What is de-normalization and what are some of the examples of it?
Why does a sql statement work correctly outside of a user-defined function, but incorrectly inside it?
What are the purpose of Normalisation?
How ssrs maintain security?
Explain temporary table vs table variable by using cursor alternative?