select b.job from dept a,emp b where a.deptno=b.deptno and a.deptno in (10,20)
minus
(select b.job from dept a,emp b where a.deptno=b.deptno and a.deptno=10
intersect
select b.job from dept a,emp b where a.deptno=b.deptno and a.deptno=20);