select name as 'customers'
from customers
where id not in (
select customerid
from orders
)
Leetcode_183_从不订购的客户_SQL
于 2022-02-13 14:47:36 首次发布
该SQL语句用于从`customers`表中选择那些不在`orders`表中出现的客户ID,即查找尚未下过订单的客户记录。这在客户行为分析或销售报告中可能很有用。

1644

被折叠的 条评论
为什么被折叠?



