Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / pradeep nambiar

select distinct(a.salary) from employee a where &n=(select
count(distinct(b.salary)) from employee b where
a.salary=b.salary)

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a fill factor?

1035


Explain about service Broker functions?

985


how would you write a sql query to compute a frequency table of a certain attribute involving two joins? What changes would you need to make if you want to order by or group by some attribute? What would you do to account for nulls?

1577


What is page in sql server?

901


What is left outer join in sql server joins?

970


Distinguish between nested subquery and correlated subquery?

976


List all types of constraints in sql server?

965


What is raid, and how it can influence database performance?

1010


how can u get last observation in an unknown dataset ?

2388


Explain how would you store your query in an SSRS report or a Database server?

114


How do I create a stored procedure in sql server?

965


What is default constraint?

936


How can you check the level of fragmentation on a table?

990


What is the architecture of ms sql reporting service?

925


Explain intellisense for query editing

980