查询emp表中各部门各工种的工资总和

2025-03-24 10:13:09
推荐回答(2个)
回答1:

select 部门,工种 ,sum(工资)from emp group by 部门,工种

回答2:

select 部门,sum(工资)from emp group by 部门