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

Find columns used in stored procedure?

940


What are the different types of sql server replication? : sql server replication

1163


How to drop an existing table with "drop table" statements in ms sql server?

1043


Does group by or order by come first?

903


Explain something about security and SQL Azure?

110


Explain different types of index?

992


Can you explain the disadvantages/limitation of the cursor?

910


What do you understand by intent locks?

958


What is the difference RDBMS and Graph Database?

1006


What is the difference between functions and scalar functions?

1129


Difference between DELETE and TRUNCATE?

1005


What are various limitations of the views?

999


What is indexing a document?

972


What is the simplest way to create a new database in ms sql server?

964


What is difference between standardization and normalization?

1021