这道题关键在于要考虑到播放时长大于视频时长的情况 with t as ( select t1.tag ,avg(case when TIMESTAMPDIFF(SECOND,t2.start_time,t2.end_time) < t1.duration then TIMESTAMPDIFF(SECOND,t2.start_time,t2.end_time)/t1.duration else 1 &nb...