select r.tag, CONCAT(ROUND(SUM(avg_play) / COUNT(tag) * 100, 2), '%') avg_play_progress from ( select t2.tag, if(TIMESTAMPDIFF(SECOND, start_time, end_time)/duration>1,1,TIMESTAMPDIFF(SECOND, start_time, end_time)/duration) avg_play from tb_user_video_log t1 join tb_video_info t2 on t1.video_id=t...