题解 | #返回产品名称和与之相关的订单号#
返回产品名称和与之相关的订单号
http://www.nowcoder.com/practice/c369a759436a4e8b80baa9c39e9adf18
SELECT p.prod_name, o.order_num
from Products p left join OrderItems o
on p.prod_id = o.prod_id
order by p.prod_name asc
返回产品名称和与之相关的订单号
http://www.nowcoder.com/practice/c369a759436a4e8b80baa9c39e9adf18
SELECT p.prod_name, o.order_num
from Products p left join OrderItems o
on p.prod_id = o.prod_id
order by p.prod_name asc
相关推荐