2026-04 QQ音乐 中等

你是QQ音乐的数据分析师。

想了解不同年代发行的专辑现在的播放热度。

请编写SQL查询,统计各年代(80年代、90年代、00年代、10年代、20年代)专辑的总播放次数,返回年代、播放次数。

年代划分:1980-1989为80年代,以此类推。

音乐偏好分析 时间日期 聚合函数 多表连接 group by inner join case when year

listen_rcd

iduser_idstart_timesong_idif_finished
1u0032024-12-07 13:30:3750
2u0032024-09-26 20:01:3751
3u0012024-12-06 18:18:37180
4u0032024-11-15 22:21:3740
5u0052024-11-07 01:41:3720

song_info

song_idsong_nameorigin_singer_idalbum_id
1稻香11
2花海11
3给我一首歌的时间11
4听妈妈的话12
5迷迭香12

album_info

album_idalbum_namedtsinger_id
1魔杰座2008-10-151
2依然范特西2006-09-051
3Myself2010-08-132
4海阔天空1993-09-093
5Thriller1982-11-304

 成为会员,解锁300道大厂数分SQL真题

ID516 QQ音乐(四)歌手播放完成率  
中等 group by inner join case when 聚合函数 多表连接 百分比计算 音乐偏好分析 QQ音乐
ID558 中金财富(十六)行业涨跌统计  
中等 group by inner join case when 聚合函数 多表连接 股市浅探 中金财富
ID564 中金财富(二十二)季度表现对比  
中等 group by case when year 时间日期 聚合函数 股市浅探 中金财富
ID592 高价值用户画像  
困难 group by inner join case when 聚合函数 多表连接 CTE或SubQuery 电商埋点分析 字节跳动
ID593 商品受众性别分析  
中等 group by inner join case when 聚合函数 多表连接 电商埋点分析 字节跳动

MySQL 8.0

00:00