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 call a stored function with parameters?
Is the After report trigger fired if the report execution fails ?
What are the limitations of check constraint?
How to rename a tablespace in oracle?
What is set verify off in oracle?
What do database buffers contain?
What is hot backup and logical backup?
What is the usage of merge statement?
What is a read only transaction in oracle?
What is ordinary table in oracle?
if you ctreate table identity
How would you edit your CRONTAB to schedule the running of /test/test.sh to run every other day at 2PM?
How to store pictures on to the database?
Are truncate and delete commands same? If so why?
How do I use os authentication with weblogic jdriver for oracle and connection pools?