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

Write query to return all rows sql?

1110


Explain tables in SQL Azure?

122


What is the Main Difference between ACCESS and SQL SERVER?

1182


How to select true false based on column value in sql server?

1082


What is it’s similarity with sql server?

160


What is the openxml statement in sql server?

1119


What is implicit mode in sql server?

1156


What is the difference between char, varchar and nvarchar?

1076


what is the difference between openrowset and openquery?

1155


How do I find query history in sql server?

988


What is default constraint?

1054


What are the difference between primary keys and foreign keys?

1015


Can you tell me about the concept of ER diagrams?

1121


What is checkpoint process in the sql server?

1074


What are the properties of the relational tables?

928