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
What is the difference between truncate & delete command?
How can you tell how much space is left on a given file system and how much space each of the file systems subdirectories take-up?
How to create a server parameter file?
How to resolve name conflicts between variables and columns?
How to connect to a local oracle 10g xe server?
How to concatenate two text values in oracle?
What are the built-in functions used for sending Parameters to forms ?
How to create a new oracle data file?
What happens to the indexes if a table is recovered?
Explain the characteristics of oracle dba?
How to add a new column to an existing table in oracle?
How to define an oracle sub procedure?
What are the uses of Database Trigger ?
What is a table in oracle?
Design database draw er diagram for a certain scenario ?