题解 | 返回顾客名称和相关订单号以及每个订单的总价

返回顾客名称和相关订单号以及每个订单的总价

https://www.nowcoder.com/practice/4dda66e385c443d8a11570a70807d250

select
    c.cust_name,
    o.order_num,
    (os.quantity * os.item_price) as OrderTotal
from Customers c
join Orders o on c.cust_id = o.cust_id 
join OrderItems os on o.order_num = os.order_num 
order by c.cust_name,OrderTotal asc

全部评论

相关推荐

球Offer上岸👑:可能是大环境太差了 太卷了 学历也很重要 hc也不是很多 所以很难
点赞 评论 收藏
分享
06-11 13:34
门头沟学院 C++
offe从四面八方来:我真的没时间陪你闹了
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务