select tag, concat (avg_play_progress, "%") as 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 ) as avg_play_progress from tb_user_video_log as a left j...