题解 | 商品销售总额分布
商品销售总额分布
https://www.nowcoder.com/practice/62909494cecd4eab8c2501167e825566
select case when pay_method="" then "error" else pay_method end as py, count(pay_method) as cnt from user_client_log lg left join product_info pf on lg.product_id=pf.product_id where step="select" and product_name="anta" group by pay_method