how to find nth highest salary
Answer Posted / debasish
select salary from table t where n-1=(select distinct count
(sal) from table t1 where t1.sal>t.sal)
Is This Answer Correct ? | 19 Yes | 11 No |
Post New Answer View All Answers
What are subquery and its properties?
How to use subqueries with the in operators in ms sql server?
What does COMMIT command do?
Which is the best place or learning center for MS SQL?????In Bangladesh?????
Explain throw statement in sql server 2008?
What are the limitations/drawbacks or ssrs 2008 r2?
What structure can you implement for the database to speed up table reads?
How will you monitor replication activity and performance? What privilege do you need to use replication monitor? : sql server replication
What are the differences between clustered and non-clustered index?
How to convert a numeric expression from one data type to another?
List out some of the requirements to set up a sql server failover cluster?
How to provide default values to function parameters?
What are the advantages of stored procedure in sql server?
How to name query output columns in ms sql server?
What do you understand by mirroring?