Skip to content

Commit 1ab322a

Browse files
Create 178. Rank Scores
1 parent 323b070 commit 1ab322a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

sql/medium/178. Rank Scores

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/* MS SQL */
2+
3+
SELECT Score,
4+
DENSE_RANK() OVER(
5+
ORDER BY score DESC
6+
) AS rank
7+
FROM Scores

0 commit comments

Comments
 (0)