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 oracle update statement with inner join ?
How do you store pictures in a database?
What is control file used for?
How to retrieve the count of updated rows?
What is SQL access advisor in Oracle?
How to turn on or off recycle bin for the instance?
what is difference between sql plus and sql*plus? (not sql and sql plus).
how the Oracle Prepares the Execution Plan and how it chooses the Optimal one?
What is a dead lock in oracle?
what is IDE,DMV in sql server?
Where do we use decode and case statements?
How to execute the package in oracle?
How to store pictures on to the database?
How can we view last record added to a table?
Explain how are indexes update?