题解 | 统计用户从访问到下单的转化率

统计用户从访问到下单的转化率

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

select left(t1.order_time, 10) as date,
       concat(round(count(distinct t1.user_id)/count(distinct t2.user_id) * 100, 1), '%') as cr
  from order_tb t1
 inner join visit_tb t2
    on left(t1.order_time, 10) = left(t2.visit_time, 10)
 group by left(t1.order_time, 10)
 order by left(t1.order_time, 10)

全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

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