select tt.month, tt.ranking, tt.song_name, tt.play_pv from (select t.month, t.song_name, t.song_id, t.play_pv, rank() over(partition by t.month order by t.play_pv desc,t.song_id asc) as ranking from (select month(a.fdate) as month, b.song_name, b.song_id, count(*) as play_pv from play_log a left joi...