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
1 01 101 01010
What are the Advantages of using CTE in sql server?
What is the full form of ddl?
Do you know what is blocking?
What is ms sql server service broker?
Why variables called the most powerful component of ssis?
What is a trigger and its types?
Can anyone tell that the extra features are there in SQL SERVER 2008 that are not available in previous versions .
What are different types of schemas?
How to delete all rows with truncate table statement in ms sql server?
Does group by sort data?
What do you understand by user-defined function in the sql server and explain the steps to create and execute a user-defined function in the sql server?
What is isnull() operator?
How to remove duplicate rows from table?
When cursors are useful?