您最内在的选择在其where子句中不使用任何内容,因此它总是在寻找一些东西供吹笛者使用。尝试
select distinct b.profname from committee bwhere not exists ( select commname from committee a where a.profname = 'piper' and not exists ( select commname from committee c where c.profname=b.profname and c.commname=a.commname ));



