测试部的平均工资求出来了但是高于平均工资1000并且是所有男职工姓名不知该如何求?
写子查询,不知道具体表结构,大概写个你参考select name from emp,detp where sex='男' and dept.id=emp.deptid and dept.name='测试部' and emp.salary > (select avg(salary)+1000 from emp)