A.DELETE FROM 部门 WHERE 部门号 NOT IN(SELECT 部门号 FROM 职工 e JOIN 部门 d ON e.部门号=D.部门号) B.delete from 部门 from 职工 where 部门号 In(select distinct(部门号)from 职工) C.delete from 部门 where 部门号 in(select distinct(部门号)from 职工) D.delete from 部门 where 部门号 not in(select distinct(部门号)from 职工)