题解 | #返回产品名称和与之相关的订单号#
返回产品名称和与之相关的订单号
http://www.nowcoder.com/practice/c369a759436a4e8b80baa9c39e9adf18
SELECT p.prod_name, i.order_num FROM Products p LEFT OUTER JOIN OrderItems i USING(prod_id) ORDER BY p.prod_name
返回产品名称和与之相关的订单号
http://www.nowcoder.com/practice/c369a759436a4e8b80baa9c39e9adf18
SELECT p.prod_name, i.order_num FROM Products p LEFT OUTER JOIN OrderItems i USING(prod_id) ORDER BY p.prod_name
相关推荐