select a.Name as Customers from Customers a left join Orders b on a.id = b.CustomerId where b.id is null;
select a.Name as Customers from Customers a where a.id not in (select CustomerId from Orders )
因篇幅问题不能全部显示,请点此查看更多更全内容