1
2
3
4
5
|
/* Write your PL/SQL query statement below */
SELECT
score
, DENSE_RANK() OVER (ORDER BY score DESC ) as rank
FROM Scores;
|
cs |
이게 리트코드 Mysql은 구버전이라 그런지 rank() 함수가 없어서
오라클로 돌림.
최신버전 Mysql 도 Rank 함수 있습니다~~
반응형
'SQL' 카테고리의 다른 글
leetcode 1729. Find Followers Count (0) | 2022.07.18 |
---|---|
leetcode 1141. User Activity for the Past 30 Days I (0) | 2022.04.02 |
leetcode 1158. Market Analysis I (0) | 2022.04.01 |
leetcode 586. Customer Placing the Largest Number of Orders (0) | 2022.04.01 |
leetcode 584. Find Customer Referee (0) | 2022.04.01 |
댓글