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...

I have one table :EID,Depid,ename,sal
I want to have max(sal) in each department.

Answer Posted / omar

select e.department_id,max(e.salary)
from employees e
group by e.department_id
order by e.department_id desc;

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to do paging with oracle?

1009


How to find the duplicate rows count from employees table in oracle?

1105


How to rename an existing table?

1136


What is the disadvantage of User defind function?

2304


How to use attributes of the implicit cursor in oracle?

1016


How to convert a string to a date in oracle database?

1060


What is a parameter file in oracle?

1143


What is Undo Management Advisor in Oracle?

1110


What are the uses of Database Trigger ?

1731


Explain the difference between sap and oracle?

1041


I just want to maintain data like an employee can belongs to 3 or more departments . We can resolve this by using composite key but it avoids normalization rules. So Can anyone tell me how can I maintain data.

2193


What to do if the startbd.bat failed to start the xe instance?

1093


What is the relation of a user account and a schema in oracle?

1087


Explain overloading. Can functions be overloaded?

1011


State and explain the different types of data models?

954