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 do you understand by mirroring?
Write a Select Query to display title for each group of records, which are collected with Compute Clause? Like titlefield column-A column-B ..... ..... ..... Sum ... titlefield column-A column-B ..... ..... ..... Sum ...
What is a derived table?
in a table is b in column k (manikanta,sivananda,muralidhar) i want result like (mnikanta,sivnanda,murlidhar) please slove it
System requirements for sql server 2005 express edition?
What happens if we shrink log file in sql server?
How will you hide an attribute? : sql server analysis services, ssas
How do I port a number to sql server?
How to get all stored procedures in sql server?
What is postgresql server?
What is sql server profiler?
What is difference between oltp and olap?
List layers of abstraction microsoft architectured to provide relational db through cloud platform ?
List the ways in which dynamic sql can be executed?
How do I start sql server 2017?