SELECT * FROM( SELECT DISTINCT month, ROW_NUMBER() OVER (PARTITION BY month ORDER BY play_pv DESC,song_id)AS ranking, song_name,play_pv FROM ( SELECT DISTINCT month, DENSE_RANK() OVER (PARTITION BY month ORDER BY play_pv DESC) AS ranking, song_id, song_name, play_pv ...