View Single Post
Newbie Member
14May2010,15:50  
bashainfi's Avatar
corrected by myself

select deptno, sum(sal) as tsal
from scott.emp a
where job in ('SALESMAN','CLERK')
group by a.deptno;