How do i get Greatest salaray of dept group from emp and dept? we have to tables EMP and DEPT. for exp: dept 10 have 10000,dept 20 have 5000 and dept 30 have 15000 salaries, i need dept 30 group salary(means sum of that group is 15000).
RE: How do i get Greatest salaray of dept group from e...
ya u can use this quiery i think no need to use dept table bcz already emp has that attribute select max(sal) from empwhere sal any ( select max(sal) from emp group by deptno);