首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > oracle >

请问关于嵌套查询

2011-12-24 
请教关于嵌套查询select公司名,职员from职员MTwhere部门,部门号(select部门,部门号from部门MTwhere员工数n

请教关于嵌套查询
select   公司名,职员   from   职员MT   where   部门,部门号(select   部门,部门号   from
部门MT   where   员工数   not   is   nul)
执行不了
请高手指点


[解决办法]
select 公司名,职员 from 职员MT where (部门,部门号) in (select 部门,部门号 from
部门MT where 员工数 not is nul)

热点排行