Find top Nth employee from each department in terms of
salary?
Answer Posted / akhil saxena
select e1.sal from emp e1 where
n-1 = (select count(distinct(e2.sal)) from emp e2
where e2.sal<e1.sal)
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
If you lose rights to your sql server instance what are the options to connect to sql server instance? : sql server security
What are triggers? How do you invoke a trigger on demand?
What is nonclustered index with included columns ?
Explain “row_number()” in sql server with an example?
Explain cdc and sql injection?
Name and describe few console utilities for ssrs?
What are the advantages of user defined function?
Please differentiate between a local and a global temporary table?
What are the types of stored procedures in an sql server?
Can a cursor be updated? If yes, how you can protect which columns are updated?
How will you optimize a stored procedure optimization?
When you use @@error and try-catch?
What are the new data types are introduced in sql 2000?
Tell me what is normalization? Explain different forms of normalization?
What is indexed view?