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

Answer Posted / ricky

select min(salary) from tablename where salary is(select
top n salary from tablename order by salary desc)

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are recommended options to be used while using db mirroring? : sql server database administration

579


Explain about merge replications?

601


Do you know what is rank function?

631


What objects does the fn_my_permissions function reports on? : sql server security

565


What is model database in sql server?

578






what is raid? : Sql server database administration

563


Differentiate between ms sql server reporting services vs crystal reports?

499


What is conditional split?

549


How to create a login account in ms sql server to access the database engine using "create login" statements?

577


Is it possible for a stored procedure to call itself or recursive stored procedure?

515


Explain what role entity and relationship play in an ER diagram.

582


What stored by the model?

554


How to select some specific rows from a table in ms sql server?

576


How many null values we can have in a unique key field in sql server?

560


What is a trace frag?

649