I have one table :EID,Depid,ename,sal
I want to have max(sal) in each department.
Answer Posted / venkat
select * from emp_test where sal IN(select max(sal) from
emp_test group by deptno)
| Is This Answer Correct ? | 1 Yes | 6 No |
Post New Answer View All Answers
What are the benefits of ordbms?
I have a table called 'test' on source and target with same name, structure and data type but in a different column order. How can you setup replication for this table?
how to code performance tuning of oracle PL/SQL? can any body send me the perfect answer?
How to experiment a data lock in oracle?
Give the various rollback segment states.
What is the difference between alert log file and tarce file ?
How to sort the query output in oracle?
What is the difference between I and G in Oracle?
What are advantages of dateset in datastage?
Explain oracle’s server parameter file.
what is the scripts in data base?
Why do I get java.lang.abstractmethoderror when trying to load a blob in the db?
Explain the use of ignore option in imp command.
How to change program global area (pga) in oracle?
How to upsert (update or insert into a table)?