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
点赞

相关推荐

野猪不是猪🐗:这种直接口头上答应,骗面试,面完了直接拉黑,相当于给自己攒面经了(
点赞 评论 收藏
分享
点赞 评论 收藏
分享
牛客网
牛客企业服务