题解 | 商品销售总额分布

select
    if (u.pay_method = '', 'error', u.pay_method),
    count(1) as c
from
    user_client_log u,
    product_info p
where
    u.product_id = p.product_id
    and p.product_name = 'anta'
    and u.step = 'select'
group by
    u.pay_method
order by
    c desc

全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务