select b.tag, concat(round(avg(if(timestampdiff(second,a.start_time,a.end_time)>b.duration,1,timestampdiff(second,a.start_time,a.end_time)/b.duration))*100,2),'%') avg_play_progress from tb_user_video_log a join tb_video_info b using(video_id) group by b.tag having avg_play_progress > '60.00%' order by avg_play_progress desc 我偷懒直接都没用substring_index分割哈哈哈
1

相关推荐

10-27 17:26
东北大学 Java
点赞 评论 收藏
分享
牛客网
牛客企业服务