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

Explain various data region available in ssrs with their use?

934


What are the different kinds of ssrs reports?

214


How to find related tables in sql server?

947


What is molap and its advantage? : sql server analysis services, ssas

986


Define magic tables in sql server?

1069


Tell me when is the update_statistics command used?

1113


what is the difference between count(*) and count(1) ?

1085


What are the dmvs? : sql server database administration

1061


What is normalization process?

1181


Explain about temporary stored procedure?

1019


How can you hide the sql server instances?

1022


What do you know about normalization and de- normalization?

926


What are the restrictions applicable while creating views? : SQL Server Architecture

1024


Tell me what is the significance of null value and why should we avoid permitting null values?

986


How to check table values in sql server?

957