在oracle中怎么查每个部门的平均工资和最高工资

2025-01-28 04:45:52
推荐回答(2个)
回答1:

select中按照部门group,然后用一下平均和最大

回答2:

select avg(sal),max(sal) from emp group by deptno