select tag, concat(round(avg(septimerate)*100,2),'%') as avg_play_progress from (select b.video_id,b.tag,a.uid, if(timestampdiff(second,a.start_time,a.end_time)/b.duration>=1,1,timestampdiff(second,a.start_time,a.end_time)/b.duration) as septimerate from tb_user_video_log a join tb_video_info b o...