select aName from a where Type in (select Type from b where bName = '选择项') and id in (select aID from c where bID in (select id from b where bName = '选择项'))
第二张表 :
select aName from a where Type in (select Type from b where bName = '选择项') and id not in (select aID from c where bID in (select id from b where bName = '选择项'))
SELEC * FROM A WHERE TYPE IN(SELECT TYPE FROM B WHERE Bname='选择字符') union select * from a where id in(select id from c where bid in(select id from b where bname='选择字符') )