LeetCode刷题实战183:从不订购的客户
Suppose that a website contains two tables, the Customers table and the Orders table. Write a SQL query to find all customers who never order anything.
题意
解题
select
Customers.Name as Customers
from
Customers left join Orders on Customers.Id = Orders.CustomerId
where
Orders.Id is null
赞 (0)