从不订购的客户


sql 编程

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
    )

相关文章:

  • 2021-06-15
  • 2022-02-08
  • 2022-12-23
  • 2021-11-19
  • 2021-12-24
  • 2021-10-05
  • 2021-11-26
  • 2022-12-23
猜你喜欢
  • 2021-05-17
  • 2022-12-23
  • 2021-11-07
  • 2021-08-24
  • 2021-09-19
  • 2021-06-22
  • 2021-05-14
相关资源
相似解决方案