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

Answer Posted / saurav kumar

select min(salary) from tablename where salary in (select
top N salary from tablename orderby salary desc)

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain different types of index?

686


What are different types of constraints?

607


in the physical file layout, where should the transaction log be stored in relation to the data file?

625


What is user-defined inline table-valued function?

584


What is full outer join in sql server joins?

640






What are joins in sql and what are the different types of joins?

628


Explain filestream storage of sql server 2008?

598


What is data source view or dsv? : sql server analysis services, ssas

642


How do I uninstall sql server 2014?

593


What is a view and what are its advantages?

758


How you can get the list of largest tables in a database?

613


Can you please explain the difference between primary keys and foreign keys?

738


What are the advantages of mirroring?

651


Is a primary key unique?

616


What is the difference between local and global temporary tables?

682