题解 | #平均播放进度大于60%的视频类别#
平均播放进度大于60%的视频类别
https://www.nowcoder.com/practice/c60242566ad94bc29959de0cdc6d95ef
SELECT
b.tag,
avg(
round(
timestampdiff (SECOND, start_time, end_time) / b.duration,
2
)
) as c_time
FROM
tb_user_video_log a
JOIN tb_video_info b ON a.video_id = b.video_id
group by
b.tag
having
c_time >= 0.6