从不订购的客户
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
)
从不订购的客户
https://leetcode-cn.com/problems/customers-who-never-order/
子查询
select
Name as Customers
from
Customers
where
Id not in (
select
distinct CustomerId
from
Orders
)
相关文章: