how to find nth highest salary
Answer Posted / babu
select * from emp e where &num=(select count(distinct(sal))
from emp b where b.sal>=e.sal)
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What are subquery and its properties?
What is a raid and what are different types of raid configurations?
Can I use sql azure as a backup with log shipping or database mirroring?
How to scale out a federation by Sql statement?
What is impersonation? What are the different impersonation options available in ssas? : sql server analysis services, ssas
What is stretch database in sql server?
What is reportserver and reportservertempdb ?
What is a data collection table?
How to rebuild indexes with alter index ... Rebuild?
Is it possible to replicate data from sql server to oracle? : sql server replication
What is difference between count (*) and count column?
what is the difference between Tabular and Matrix report?
How to check parameter value in stored procedure sql server?
What are page splits?
Explain the difference between cross join and full outer join?