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 / suri

select max(m.total_amt),e.emp_name, d.dept_name from
hr_employee_salary_mst m,
hr_employee_mst e, hr_dept_table d
where d.dept_id=e.dept_id
and m.employee_id=e.emp_id
group by d.dept_name,e.emp_name,d.dept_name

Is This Answer Correct ?    3 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I change procedure name in sql server?

1062


What is sub-query in sql server? Explain its properties.

1103


What is report subscription?

128


What is the sql case statement used for?

1111


What are the different subsets of sql?

1561


What is the fillfactor concept in indexes?

997


What is the difference between implicit and explicit transaction?

1023


What is the difference between cartesian product and cross join?

872


What is difference between temp table and cte?

1040


Tell me the difference between clustered and non-clustered index?

942


What are constraints in microsoft sql server?

1152


What stored by the msdb?

1006


How to list all schemas in a database?

1070


What is the difference between web edition and business edition?

111


What are the advantages of user defined function?

994