各部门平均工资等级sql

2025-03-27 08:18:15
推荐回答(2个)
回答1:

select 部门=部门字段,平均工资=AVG(工资字段) from 工资表 group by 部门字段

回答2:

40 then 1 else 0 end) as "