题解 | #每天的日活数及新用户占比#

每天的日活数及新用户占比

http://www.nowcoder.com/practice/dbbc9b03794a48f6b34f1131b1a903eb

SELECT dt,count(uid) dau,round(sum(if(((uid,dt) in (select uid,date(min(in_time)) from tb_user_log group by uid)),1,0))/count(uid),2) uv_new_ratio from( select uid,date(in_time) dt from tb_user_log union select uid,date(out_time) dt from tb_user_log ) a group by dt order by dt

全部评论

相关推荐

点赞 评论 收藏
分享
牛客773130651号:巨佬,简历模板换成上下的,左右的很烦,hr看着不爽。。。科大随便乱杀,建议能保研就保研,不行也得考一下 ,985硕去干算法,比开发强多了。开发许多双非都能搞,学历优势用不上,算法有门槛
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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