sql查询条件有关问题

sql查询条件问题谁能帮我分析一下啊。selecta字段,b字段fromA表where部门 (字段)in(select部门fromB表where

sql查询条件问题
谁能帮我分析一下啊。
select   a字段,b字段
from   A表
where   '部门 '(字段)   in   (select   '部门 '   from   B表   where   C字段= 'c,d ')
*   C的值是在c,d中的一个

[解决办法]
等号旁边有语法错误,正解如下;
select a字段,b字段
from A表
where '部门 '(字段) in (select '部门 ' from B表 where C字段 in ( 'c ', 'd '))


[解决办法]
select a字段,b字段
from A表
where '部门 '(字段) in (select '部门 ' from B表 where C字段= 'a ' and C字段= 'b ')
[解决办法]

select a字段,b字段
from A表
where '部门 '(字段) in (select '部门 ' from B表 where C字段= 'a ' or C字段= 'b ')