题解 | 未下单用户登陆渠道统计

未下单用户登陆渠道统计

https://www.nowcoder.com/practice/5090553d7854458987997a5c91c30975

select
channel
,cnt
from(
    select
    channel
    ,count(*) cnt
    ,rank()over(order by count(*) desc, channel) rk
    from user_info
    where uid not in (select uid from order_log)
    group by channel
) t
where rk = 1

全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

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