select tag, avg_play_progress from ( select tag, concat(round(avg( case when process >= 1 then 1 else process end )*100,2), '%') avg_play_progress from ( select t2.tag, (TIMESTAMPDIFF(second,t1.start_time,t1.end_time)/t2.duration) process from tb_user_video_log t1 , tb_...