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

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

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

select o_time as date, concat(round(order_num/visit_num*100,1),'%') as cr from
(
select o_time,count(o_time) as order_num from
(
select user_id,date(order_time) as o_time from order_tb
group by user_id,date(order_time)
) as t1
group by o_time
) as t3
join
(
select v_time,count(v_time) as visit_num from
(
select user_id,date(visit_time) as v_time from visit_tb
group by user_id,date(visit_time)
) as t2
group by v_time
) as t4
on t3.o_time = t4.v_time
order by date

全部评论

相关推荐

等闲_:小红书基本不区分日常和暑期,你是应届实习时间够了就有转正机会,只要部门有hc
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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