select tag, concat (avg_play_progress, "%") avg_play_progress from ( select tag, round( avg( if ( timestampdiff (second, start_time, end_time) > duration, 1, timestampdiff (second, start_time, end_time) / duration ) ) * 100, 2 ) avg_play_progress from tb_user_video_log uvl join tb_video_info vi o...