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 cursors and when they are useful?
How many tables can be joined in SQL Server?
What are the types of database recovery models?
Explain Reporting Life Cycle?
Why main is user defined function?
Does a specific recovery model need to be used for a replicated database? : sql server replication
Can two tables share a primary key?
What are the new features are introduced in sql server 2012 reporting services?
What is blocking?
What is a livelock?
What happens when the SQL Azure database reaches Max Size?
How to convert numeric values to integers in ms sql server?
Explain features of analysis services?
List out a number of the wants to setup a SQL Server failover cluster?
you added a row to a view, but the row is not shown on the view. Explain how this can happen, and how you can remedy the situation