select C.cust_name,O.order_num,(select sum(quantity*item_price) from OrderItems where order_num = O.order_num) OrderTotal from Customers C,Orders O where C.cust_id = O.cust_id group by cust_name,order_num order by cust_name,OrderTotal
点赞

相关推荐

08-27 12:02
已编辑
南京外国语学校 网络安全
再来一遍:实则劝各位不要all in华子,不要相信华为hr
点赞 评论 收藏
分享
牛客网
牛客网在线编程
牛客网题解
牛客企业服务