数据1.3

select e.ename,e.job,e.sal,m.ename,m.job,d.dname,s.grade, temp.count,  temp.avg  

from  emp e,emp m,dept d, salgrade s,(select  deptno de, count(empno) count,avg(sal) avg  from   emp group by  deptno )  temp

 where  e.deptno=d.deptno

and e.mgr=m.empno  

and  e.sal between   s.losal and  s.hisal

And e.sal>(Select  avg(sal) from emp)  

 and  e.deptno=temp.de;

 

相关文章:

  • 2021-09-30
  • 2021-10-01
  • 2021-11-26
  • 2021-10-06
  • 2021-04-21
  • 2022-12-23
  • 2022-01-13
  • 2022-12-23
猜你喜欢
  • 2022-01-01
  • 2021-06-07
  • 2021-10-07
  • 2022-12-23
  • 2022-12-23
  • 2021-12-03
  • 2021-08-10
相关资源
相似解决方案