Find top Nth employee from each department in terms of
salary?

Answer Posted / saber ali

select max(salary) from employee where salary in (select top
4 salary from employee order by salary desc)

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How will you monitor replication latency in transactional replication? : sql server replication

618


How to declare and use cursor variables?

589


What happens if null values are involved in datetime operations?

539


What is difference between rownum and rowid?

511


Are resultset updatable?

531






Where is trigger in sql server?

546


What do you understand by intent locks?

577


Difference between connected and disconnected database in .net with sql server?

581


What are magic tables in sql server?

628


How do I view a stored procedure in sql server?

524


What is the function of inner join?

563


What is the preferred way to create a clustered and non-clustered index? Which index should you create first the clustered or non-clustered?

479


what is raid and what are different types of raid configurations? : Sql server database administration

541


Does hive support indexing?

525


What is DCL?

595