[LeetCode] 178. Rank Scores
2022. 6. 7. 01:08ㆍSQL
내 쿼리
SELECT score
,DENSE_RANK() OVER (ORDER BY score DESC) AS 'rank'
FROM scores
ORDER BY score DESC
- RANK
- DENSE_RANK
- ROW_NUMBER
RANK() OVER ((PARTITION BY ~) ODER BY ~)
'SQL' 카테고리의 다른 글
[HackerRank] Weather Observation Station 5 (0) | 2022.06.08 |
---|---|
[HackerRank] Weather Observation Station 3 (0) | 2022.06.07 |
[LeetCode] 184. Department Highest Salary (0) | 2022.06.07 |
SQL - 심화 2 (0) | 2022.03.20 |
SQL - 심화1 (0) | 2022.03.20 |