183.从不订购的顾客

解析

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

  通过select 查询 Name 并 as Customers

左外连接查询

当 CustomerId为 null;

相关文章:

  • 2021-06-22
  • 2022-12-23
  • 2021-11-19
  • 2022-12-23
  • 2021-12-24
  • 2021-12-07
  • 2022-01-05
  • 2021-07-26
猜你喜欢
  • 2021-09-19
  • 2022-12-23
  • 2021-06-15
  • 2022-02-08
  • 2021-11-07
  • 2021-08-24
  • 2021-05-17
相关资源
相似解决方案