数据库查询出平均工资在1500元以上的部门名称和平均工资
发布网友
发布时间:2022-04-10 17:54
我来回答
共1个回答
热心网友
时间:2022-04-10 19:23
select departmentName,avg_wage from department
left join (select avg(wage)avg_wage,departmentID from departWage group by departmentID) wage
on department.departmentID=wage.departmentID
where avg_wage>1500
sql server 的,有表结构么?