Find top Nth employee from each department in terms of
salary?
Answer Posted / saurav kumar
select min(salary) from tablename where salary in (select
top N salary from tablename orderby salary desc)
| Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
What is the order in which the sql query is executed?
Can we use where and having clause together?
What is the optimization being performed in oracle and SQL Server?
What is the purpose of floor function?
What is sub-query in sql server?
Mention what are the core components of ssrs?
What is difference between clustered and non clustered index?
What is log shipping? Can we do logshipping with SQL Server 7.0 ?
What do you mean by tablesample?
What is a trigger what are the advantages of trigger?
How can you find out how many rows returned in a cursor?
what type of index will get created after executing the above statement? : Sql server database administration
What is the difference between ROW_NUMBER and Ranking function in SQL SERVER?
What is the use of attributehierarchyvisible ? : sql server analysis services, ssas
What do mean by xml datatype?