SELECT rank() over (ORDER BY rs.score DESC, rs.ranking_reg_date asc ) as rank_no , rs.idx, rs.player_id, rs.login_id,score, rs.clear_map, rs.ranking_reg_dateFROM (SELECT Rank() over (Partition BY player_id ORDER BY score DESC, ranking_reg_date asc ) AS rank_top, idx, player_id, login_id,score, clear_map, ranking_reg_dateFROM dbo.ranking where 1=1) rs WHERE rank_top = 1
Next
« Prev Post
« Prev Post
Previous
Next Post »
Next Post »
댓글 쓰기
피드 구독하기:
댓글 (Atom)