题解 | #日活与每日次日留存率#

日活与每日次日留存率

https://www.nowcoder.com/practice/18b168ada98d4bdb9108444443cea7d3

select a.visit_date, count(*) dau, count(b.visit_date)/count(*) next_day_per
from user_visit_log a left join user_visit_log b
on a.id = b.id and timestampdiff(day,a.visit_date,b.visit_date)=1
group by a.visit_date;

全部评论

相关推荐

点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务