select e.ename,e.salary,e.deptno
from employee e join
(select deptno,round(avg(salary)) avgsal
from employee
group by deptno) a
on e.deptno = a.deptno
and e.salary > a.avgsal
select e.ename,e.salary,e.deptno from employee e join (select deptno,round(avg(salary)) avgsal from employee group by deptno) a on e.deptno = a.deptno and e.salary > a.avgsal 其中select子句的查询结果集是: 1304500 22011667 3108000 那么e.salary > a.avgsal是怎么执行的呢? 我