leetcode 183 从不订购的客户

从不订购的客户

 

select c.Name as Customers from Customers c 
left join Orders o
on c.Id = o.CustomerId
where o.CustomerId is null

 

select customers.name customers from customers where customers.id not in (select orders.customerid from orders)

 

posted @ 2023-04-11 15:54  Carl_ZhangJH  阅读(12)  评论(0)    收藏  举报