#【问题】检索每个顾客的名称(Customers表中的 cust_name)和所有的订单号(Orders 表中的 order_num),
# 列出所有的顾客,即使他们没有下过订单。最后根据顾客姓名cust_name升序返回。
select
t.cust_name,
t1.order_num
from
Customers t
left join Orders t1 on t.cust_id = t1.cust_id
order by
t.cust_name asc



京公网安备 11010502036488号