how to find nth highest salary
Answer Posted / lakshmi reddy
To get nth highest salary from Employee table:
select * from Employee e where n=(select COUNT(distinct sal)
from Employee e2 where e2.Sal>e.Sal)
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
what are constraints? Explain different types of constraints? : Sql server database administration
What is a coalesce function?
What is the difference between TRUNCATE and DROP?
How to link tables in sql server?
How to start and end transact-sql statements?
do you know how to configure db2 side of the application? : Sql server database administration
Suppose you want to implement the one-to-one relationships while designing tables. How would you do it?
What is local temp table?
What is the difference between varchar and nvarchar datatypes?
Are semicolons required at the end of sql statements in sql server 2005?
Why transaction is important?
What is faster join or union?
Can sql servers link to other servers like oracle?
Explain difference between cross join and full outer join?
What are truncate options available in sql server? : sql server database administration