题解 | #检索每个顾客的名称和所有的订单号(二)#

检索每个顾客的名称和所有的订单号(二)

https://www.nowcoder.com/practice/4e73c4e770b941c9abc60814601ed498

select  cust_name,order_num
from Customers t left join Orders t1 on t.cust_id=t1.cust_id
order by cust_name

知识点:
1、外连接的使用,识别主表
2、一般主表都放在左侧,故常用left join

全部评论

相关推荐

评论
4
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务