[leetcode]178. Rank Scores

hy_jin·2023년 11월 22일

정답

SELECT score
      ,DENSE_RANK() OVER (ORDER BY score DESC) AS 'rank'
FROM Scores

https://dev.mysql.com/doc/refman/8.0/en/window-function-descriptions.html
순위를 정하는 함수에 대해 묻는 문제였다.

profile
천천히 꾸준히

0개의 댓글