题解 | #平均播放进度大于60%的视频类别#

平均播放进度大于60%的视频类别

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

select tag, concat(round(avg( if (TIMESTAMPDIFF(second,start_time,end_time)>duration,100, (100TIMESTAMPDIFF(second,start_time,end_time)/duration))),2),'%') as progress from tb_video_info v join tb_user_video_log uv using(video_id) group by tag having avg( if (TIMESTAMPDIFF(second,start_time,end_time)>duration,100, (100TIMESTAMPDIFF(second,start_time,end_time)/duration))) > 60 order by progress desc

全部评论

相关推荐

联洲 嵌入式软件开发 总包48w(sp+3档)
点赞 评论 收藏
分享
2024-11-13 11:12
门头沟学院 Java
咩咩子_:专业技能写上面 项目往下放,如果可以的话改一下学校最好
点赞 评论 收藏
分享
评论
点赞
收藏
分享
牛客网
牛客企业服务