读书人

请问关于嵌套查询

发布时间: 2011-12-24 23:03:24 作者: rapoo

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


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

读书人网 >oracle

热点推荐