oracle 查工資大於本部門平均工資的員工信息兩種方法

查工資大於本部門平均工資的員工信息兩種方法 [code] 第一種方法: select * from scott.emp e where sal > (select avg(sal) from scott.emp where e.deptno=deptno) 第二種方法: select * from scott.emp e1,(select avg(sal) sals,deptno from sco
相關文章
相關標籤/搜索