题解 | #返回顾客名称和相关订单号以及每个订单的总价#
返回顾客名称和相关订单号以及每个订单的总价
https://www.nowcoder.com/practice/4dda66e385c443d8a11570a70807d250
# select cust_id ,cust_name from Customers c,Orders o where c.cust_id=o.cust_id # select (quantity*item_price) as OrderTotal from Orders o, OrderItems oi where o.order_num=oi.order_num select cust_name , o.order_num , (quantity*item_price) as OrderTotal from Customers c , Orders o, OrderItems oi where c.cust_id=o.cust_id and o.order_num=oi.order_num order by cust_name asc
查看4道真题和解析