题解 | #各个视频的平均完播率#

各个视频的平均完播率

http://www.nowcoder.com/practice/96263162f69a48df9d84a93c71045753

select video_id, round(sum(if(a >= duration, 1, 0)) / count(video_id), 3) avg_comp_play_rate from ( select t.video_id, timestampdiff(second, t.start_time, t.end_time) as "a", tt.duration from tb_user_video_log t, tb_video_info tt where t.video_id = tt.video_id and date_format(t.start_time, '%Y') = 2021 and date_format(t.end_time, '%Y') = 2021 ) z group by video_id order by avg_comp_play_rate desc

全部评论

相关推荐

02-23 12:32
已编辑
门头沟学院 嵌入式工程师
King987:学历没有问题,然后既然有实习经历的话,把这个放在上面多写一点,哪怕你自己包装一下,只要能圆回来就行,既然有实习经历的话,肯定主要看实习经历之类的。然后也会主要问这里多准备准备
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务