17.销售员
链接:https://leetcode-cn.com/problems/sales-person/
select salesperson.name from salesperson
where name not in(
select name from salesperson s
left join orders o
on s.sales_id=o.sales_id
where o.com_id is not null
and o.com_id=(select c.com_id from company c where name='RED')
);
--先查找与RED公司做过交易的人
select name from salesperson s
left join orders o
on s.sales_id=o.sales_id
where o.com_id is not null
and o.com_id=(select c.com_id from company c where name='RED')
--最后从总表中把这些人删除掉