当前位置: 代码迷 >> Oracle管理 >> 请问关于嵌套查询
  详细解决方案

请问关于嵌套查询

热度:86   发布时间:2016-04-24 06:06:26.0
请教关于嵌套查询
select   公司名,职员   from   职员MT   where   部门,部门号(select   部门,部门号   from
部门MT   where   员工数   not   is   nul)
执行不了
请高手指点


------解决方案--------------------
select 公司名,职员 from 职员MT where (部门,部门号) in (select 部门,部门号 from
部门MT where 员工数 not is nul)
  相关解决方案