select t0.name as Customers from Customers t0 where not exists (select * from orders t1 where t0.id=t1.customerid)
高赞解法 左连接: select Name as Customers from Customers left join Orders on Customers.Id = Orders.CustomersId where Orders.CustomerId is null
leetcode sql No.183 从不订购的客户
最新推荐文章于 2022-03-22 09:39:38 发布