select * from scott.emp e where e.sal > (select avg(sal) from scott.emp where deptno=e.deptno);
解决方案 »
- 数据修改过程中出现问题—— ora-20595, ora-06512, ora-04088
- oracle日期字段中的值是0000-0-0,怎么回事?
- PL/SQL Developer连接不上oracle数据库
- 散分100,高分请教一个有关管理服务器的问题!
- 手里有一个 sql 文件,里面的内容都是创建表、序列、插入数据的 sql 语句,不知道怎么在oracle里去执行?谢谢
- 请问order by后面的字段名是否必须是select出来的字段名?
- 如何用用一个批处理文件实现执行多个sql文件?谢了先
- @@@@@@@高分求关于两个表的统计查询的sql,在线等,马上结贴(100%的结贴率)@@@@@@@
- 数据泵的导出
- 单表横表转纵表查询速度慢求解决方法?
- 请问各位大侠谁有在oracle 11g中执行发邮件的存储过程
- 影响性能的因素???
(select deptno , avg(sal) sal_avg from scott.emp group by deptno) n
where m.deptno = n.deptno and m.sal > n.sal_avg
还有整个语句的执行有没有什么先后顺序的?