题解 | #返回产品名称和与之相关的订单号#
返回产品名称和与之相关的订单号
https://www.nowcoder.com/practice/c369a759436a4e8b80baa9c39e9adf18
select prod_name,order_num from Products t left join OrderItems t1 on t.prod_id=t1.prod_id order by prod_name
题目说到的 OUTER JOIN 即为LEFT OUTER JOIN
平时略写为 LEFT JOIN