题解 | #从 Products 表中检索所有的产品名称以及对应的销售总数#
返回顾客名称和相关订单号以及每个订单的总价
http://www.nowcoder.com/practice/4dda66e385c443d8a11570a70807d250
select c.cust_name,o.order_num,oi.OrderTotal from (Customers c join Orders o) join (select order_num,quantity*item_price as OrderTotal from OrderItems) oi on c.cust_id=o.cust_id and o.order_num=oi.order_num order by cust_name,order_num asc