从不订购的客户-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
    )
posted @ 2020-06-14 13:18  吴丹阳-V  阅读(136)  评论(0编辑  收藏  举报