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

Why we use bulk collect in oracle?

536


What is the difference between the Oracle ODBC driver and a Microsoft ODBC (Open Database Connectivity) Driver?

619


Explain a private synonyms?

634


What are transaction isolation levels supported by oracle?

576


Design database draw er diagram for a certain scenario ?

4105






An automatic job running via DBMS_JOB has failedKnowing only that its failed, how do you approach troubleshooting this issue?

1623


What are the uses of a database trigger?

518


Query to retrieve record for a many to many relationship ?

2081


How would you go about verifying the network name that the local_listener is currently using?

1609


Briefly explain what is literal? Give an example where it can be used?

544


What is null value in oracle?

638


what is meant by magic query

1775


How do I know if oracle is installed on windows?

488


What are the extensions used by oracle reports?

575


How do you find out from the RMAN catalog if a particular archive log has been backed-up?

1661