I'm trying to view the maximum salary from the table ORG grouped by DEPT .Below is my table data I've created using Oracle SQL
I've used the query to group and display DEPT and total salary as shown below where I got the grouped department and its's corresponding total salary
QUERY :SELECT DEPT,SUM(SALARY) FROM ORG GROUP BY DEPT;
RESULT :
But I'm expecting the result only to display the maximum value of the above ie., 2 | HW | 113000 .Can you pls help to modify the above query..Thanks

