题解 | 统计各等级会员用户下订单总额
统计各等级会员用户下订单总额
https://www.nowcoder.com/practice/48dd35a3dd8c4e1494db36b097a03300
select vip, sum(COALESCE(order_price,0)) as order_total from order_tb as o right join uservip_tb as u on o.user_id=u.user_id group by vip order by order_total desc