I have one table :EID,Depid,ename,sal
I want to have max(sal) in each department.
Answer Posted / narasimha
select e.eid,e.sal,e.depid,e.ename,e.sal from emp e
where 1>(select count(*) from emp w where e.sal<w.sal and
e.depid=w.depid) order by e.deptno asc
Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
What is the Tune Query
How can I see all tables in oracle?
Explain the use of rows option in exp command.
Explain the use of grant option in exp command.
How to get maxsal , minsal, ename department wise in single query
Describe varray?
What is the minimum client footprint required to connect c# to an oracle database?
How to define a variable of a specific record type?
Why should I use oracle database?
Why cursor variables are easier to use than cursors?
Can we commit inside a function in oracle?
Explain the features of oracle?
Difference between the “verify” and “feedback” command?
Explain a synonym?
How to get execution path reports on query statements?