FROM使用子查询
   子查询结果充当一个临时表。
 
 //子查询形成的临时表字段为NO,NAME,SAL
  select no,name from(
    select empno no,ename name,sal from emp
  );
 //子查询形成的临时表字段为DEPTNO,AVG
 select deptno,avg
 from(
   select deptno,avg(sal) avg
   from emp
   group by deptno
 )
 where avg>2000;

相关文章:

  • 2021-08-09
  • 2021-12-05
  • 2021-10-26
  • 2021-12-12
  • 2022-12-23
  • 2021-06-29
猜你喜欢
  • 2022-01-18
  • 2022-12-23
  • 2021-08-30
  • 2022-12-23
  • 2022-12-23
  • 2022-01-07
相关资源
相似解决方案