- Published on
Leetcode - 178. Rank Scores
- Authors
- Name
- Indo Yoon
Table of Contents
문제
[Loading...
Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.
LeetCode
](https://leetcode.com/problems/rank-scores/)
정답
SELECT score, DENSE_RANK() OVER(ORDER BY score DESC) AS "rank"
FROM Scores
ORDER BY score DESC