how to find nth highest salary
Answer Posted / avinash
declare @n;
set @n = N
select * from tbl
where @n in (
select dense_rank over (order by salary) as rank_sal
from tbl )
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is cte (common table expression)?
Can a database be shrunk to 0 bytes, if not, why?
Do you know what is difference between stored procedure and user defined function?
What is the difference between system objects and user objects?
What is difference between joins and subqueries?
What are different types of collation sensitivity?
What is an index in sql?
Tell me what are the essential components of sql server service broker?
Does sql server use t sql?
Where actually sql azure database is hosted?
Do you know how to send email from database?
When do you think a developer should use sql server-based cursors?
What does indexation mean?
What is difference between temp table and cte?
What is the security model used in sql server 2005?