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 purpose of normalization?
What is the meaning of sql server?
Can we update data in a view?
Explain the database you used in your final year project?
What is dirty page?
Tell me what is fill factor?
Explain Geometry datatype in sql server 2008 with example
How to set database to be single_user in ms sql server?
How to add a new column to an existing table with "alter table ... Add" in ms sql server?
How to check if stored procedure is running in sql server?
How to use subqueries in the from clause in ms sql server?
Can we use trigger new in before insert?
What is normalization 1nf 2nf 3nf?
What stored by the model?
How you provide security to cube? : sql server analysis services, ssas