how to find nth highest salary
Answer Posted / ravikiran
select * from employee.e1 where (n-1) =
( select (distinct b.salary ) from employee.e2 where e1.salary > e2.salary
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What protocol does sql server use?
How to set the current database in ms sql server?
What Is Rdbms?
How do I get Report Builder to generate a parameter that can be set by users viewing the report?
How to modify the underlying query of an existing view?
Can anyone tell that the extra features are there in SQL SERVER 2008 that are not available in previous versions .
Define Joins?
What is merge join?
How to get a list of all tables with "sys.tables" view in ms sql server?
What are window functions in sql server?
Explain left outer join and right outer join?
what is the different types of backups available in sql server? : Sql server database administration
Does the unique constraint create an index?
Is it possible to run multiple publications and different type of publications from the same distribution database? : sql server replication
What is role playing dimension with two examples? : sql server analysis services, ssas