首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

联系关系子查询 和 嵌套子查询

2012-11-13 
关联子查询 和 嵌套子查询select a.* from emp a ,(select deptno,avg(sal) sal from emp group by deptno

关联子查询 和 嵌套子查询

select a.* from emp a ,(select deptno,avg(sal) sal from emp group by deptno) bwhere a.deptno=b.deptnoand a.sal < b.sal ;
?

热点排行