select dname as 部门名称,avg(salary) as 平均工资
from emp a,dept b
where a.dno=b.dno and salary>=600
group by dname