Customers Who Never Order

2015-04-16  本文已影响20人  myang199088

Write your MySQL query statement below

select Name from Customers where Id not in (select * from(select CustomerId from Orders) t)

select c.Name from Customers c left join Orders o on c.id = o.CustomerId where o.CustomerId is NULL

上一篇下一篇

猜你喜欢

热点阅读