oracle having用法

举例 : 查处某个部门工资低于2000的部门号,平均工资;

sql语句: select avg(sal),num from emp group by num having avg(sal) < 2000;

你可能感兴趣的:(oracle having用法)