从不订购的客户-leetcode

从不订购的客户


sql 编程

1. 地址

https://leetcode-cn.com/problems/customers-who-never-order/

2. 解法

子查询

select
    Name as Customers
from
    Customers
where
    Id not in (
        select
            distinct CustomerId
        from
            Orders
    )
原文地址:https://www.cnblogs.com/wudanyang/p/13124512.html