how to find nth highest salary
Answer Posted / ankur bakliwal
I think this should work -
select top 1 salary from employee where salary in (select
distinct
top n salary from employee order by salary desc) order by
salary asc
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
but what if you have to create a database with two filegroups, one on drive c and the other on drive d with log on drive e with an initial size of 600 mb and with a growth factor of 15%? : Sql server database administration
Can we use having clause without group by?
What is surrogate key? : sql server analysis services, ssas
you have couple of stored procedures that depend on a table you dropped the table and recreated it what do you have to do to reestablish those stored procedure dependencies?
Differentiate sql server reporting services vs. Crystal reports?
What are different replication agents and what's their purpose? : sql server replication
Explain raiserror in sql server?
What do you understand by recursive stored procedure?
How to round a numeric value to a specific precision?
Why people hate cursor?
How you can get the list of largest tables in a database?
What is cursors? And what are the different types of cursor?
What is the difference between ROW_NUMBER and Ranking function in SQL SERVER?
Do you know what are the ways available in sql server to execute sql statements?
What is subquery in sql?