题解 | 支付成功的订单数

select
    # 题目答案有问题
    if(u.product_id = 'p599','p100',u.product_id),
    count(trace_id) as cnt
from
    user_client_log u,
    product_info p
where
    u.product_id = p.product_id
    and step = 'order'
group by
    u.product_id
order by
    cnt desc,
    u.product_id asc
limit
    1

全部评论

相关推荐

04-13 18:10
门头沟学院 Java
想熬夜的小飞象在秋招:被腾讯挂了后爸妈以为我失联了
点赞 评论 收藏
分享
05-03 12:45
西南大学 Java
sdgfdv:你这项目写的内容太多了,说实话都是在给自己挖坑,就算简历过了,后面面试也难受
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务