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
What is ddl and dml commands?
What are triggers? How many triggers you can have on a table? How to invoke a trigger on demand?
What is a ddl statement?
Do you know clustered and non-clustered index?
What does indexation mean?
Explain about protocol layer present in SQL server?
What is difference between order by and group by?
What is difference between createstatement and preparedstatement?
what are the critical issues you have resloved in your company
How to use clusters?
How ssrs maintain security?
Ms sql server index?
How to start sql server browser service?
What is the difference between clustered and non-clustered indexes in ms sql server?
How to get a list of columns in a view using the "sp_columns" stored procedure?