题解 | 下单最多的商品

下单最多的商品

https://www.nowcoder.com/practice/d7c93e3a3d5b4087896539121d32d367

select
    product_id,
    count(distinct trace_id) as cnt
from
    user_client_log
where
    step = 'order'
group by
    product_id
order by
    count(distinct trace_id) desc,
    product_id asc
limit
    1

全部评论

相关推荐

芜湖e:我在这家待过,老板就一rz,能别去就别去,还在用jsp,合同也不主动给你签,上班看一下手机他就要把你叫到办公室说你,公司项目也老,还在用jsp,纯屎山代码,我干了三天就跑路了,工资也没给😅
点赞 评论 收藏
分享
昨天 13:54
门头沟学院 Java
被卡学历了简历挂,绷不住了...
投递4399游戏等公司10个岗位
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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