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