获得每个会话MySQL练习的平均歌曲,需要进行以下步骤:
SELECT session_id, AVG(song_count) AS average_song_count
FROM (
SELECT session_id, COUNT(*) AS song_count
FROM songs
GROUP BY session_id
) AS subquery
GROUP BY session_id;
腾讯云相关产品推荐:
请注意,以上推荐的腾讯云产品仅供参考,具体选择应根据实际需求和情况进行。
领取专属 10元无门槛券
手把手带您无忧上云