select tag,concat(round(avg(if((timestampdiff(second,start_time,end_time)/t2.duration) > 1,1,(timestampdiff(second,start_time,end_time)/t2.duration)))*100,2),'%') from tb_user_video_log t1 LEFT JOIN tb_video_info t2 ON t1.video_id = t2.video_id group by tag having avg(if((timestampdiff(second,sta...