how to find nth highest salary
Answer Posted / amit kumar
--- Getting 4th highest salary
--- 4 can be replaced with any number
with EmpSal as
(Select *, row_number() over (order by EmpSal Desc)
as 'rownumber' from employee)
Select * from EmpSal where rownumber =4
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are secondary xml indexes?
Can you please explain the difference between function and stored procedure?
Difference between aggregate functions of sql?
What is isnull() operator?
Can an entity have two primary keys?
If the job running very slow what is the action you do
What does it mean to manipulate data?
What are group functions in query statements in ms sql server?
What is collation?
what is difference between NULL and ISNULL in SQL Server 2008?
What is a scheduled job or what is a scheduled task?
What happens if you add a new index to large table?
What are the differences between sql server and mysql.
Does order by actually change the order of the data in the tables or does it just change the output?
Define compound operators?