题解 | 统计各等级会员用户下订单总额

统计各等级会员用户下订单总额

https://www.nowcoder.com/practice/48dd35a3dd8c4e1494db36b097a03300

select uservip_tb.vip,COALESCE(sum(order_tb .order_price),0) as order_total

from order_tb right join uservip_tb on order_tb .user_id=uservip_tb .user_id

group by uservip_tb.vip

order by order_total desc;

全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

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