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

How we can refresh the view?

1165


What is user-defined function?

1035


Explain different types of self contained sub query?

1107


What is subquery explain with example?

1125


How to set the current database in ms sql server?

1146


What is difference between rollback immediate and with no_wait during alter database?

1138


What is the benefit of normalization?

1138


What are actions, how many types of actions are there, explain with example? : sql server analysis services, ssas

1073


Define constraints and give an example of their use?

1099


What is function of CUBE ?

1078


How to choose all records from the table?

1110


What is difference between table aliases and column aliases? Do they affect performance?

1021


Differentiate between mongodb vs. Sql server?

1144


When would you use the stored procedures or functions?

1054


what is database replicaion? : Sql server database administration

1274