Oracle之分组函数嵌套以及表连接
摘要:
--1 数据环境准备 scott 用户下面的emp,dept表 --2 要求 :求平均工资最高的部门编号,部门名称,部门平均工资 select d.deptno,d.dname,e.salfrom(select avg(sal) sal,deptnofrom emp egroup by deptno 阅读全文
posted @ 2017-05-11 22:57 星空思维 阅读(479) 评论(0) 推荐(0) 编辑