题解 | 商品销售总额分布

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

全部评论

相关推荐

小叮当411:应该是1-3个月吧
点赞 评论 收藏
分享
05-11 20:45
门头沟学院 Java
有担当的灰太狼又在摸...:零帧起手查看图片
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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