adspace


I have one table :EID,Depid,ename,sal
I want to have max(sal) in each department.

Answer Posted / vengalrao

Dear Friends,

Depends upon table u can pick one max value is possible,one
table u cannot pick max value of all columans , then u can
refer one any ne column

select depid,max(sal) from <table name> group by depid;

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is oracle latest version?

1185


How to select all columns of all rows from a table in oracle?

1149


Please send me Informatica 8.1 certification dumps, my mail id mona85gupta@gmail.com

1967


How to write a left outer join with the where clause in oracle?

1164


How to use values from other tables in update statements using oracle?

1173


How to start an oracle instance?

1111


Design database draw er diagram for a certain scenario ?

4670


How to put more than 1000 values into an oracle in clause?

1125