步骤1:统计播放每个视频的id的出现的个数select video_id,count() as num_1 from tb_user_video_log group by video_id 步骤2:统计2021年每个视频id播放完成的个数select a.video_id,count() as num from tb_user_video_log a join tb_video_info b on a.video_id=b.video_id where TIMESTAMPDIFF(SECOND,a.start_time,a.end_time)>=b.duration and year(a...