其他分享
首页 > 其他分享> > 力扣:183. 从不订购的客户

力扣:183. 从不订购的客户

作者:互联网

 

1、查询不在oders表customerid中的customers表的id,返回对应的名字。

# Write your MySQL query statement below
select Name as Customers
from Customers
where Id not in (select distinct CustomerId as Id from Orders)

 

标签:Write,Customers,订购,oders,力扣,183,MySQL,Id,select
来源: https://blog.csdn.net/qq_50917103/article/details/121237233