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
How to convert raw data type into text in oracle? Explain
What is the best way to do multi-row insert in oracle?
How can Oracle users be audited?
What is the difference between substr and instr?
What is procedure overloading in oracle?
How to rename an index in oracle?
What are the uses of Database Trigger ?
Which is better Oracle or MS SQL? Why?
What are the attributes of the cursor?
interview questions with answer for cts
What is the difference between substr & instr functions?
How to count groups returned with the group by clause in oracle?
Can we use oracle pl/sql block in core java? if so how? pls get back to me .....
Use of an integrity constraint is better to validate data. Explain
Which are the five query types available in oracle?