178. Rank Scores
Rank Scores
Solution
# Write your MySQL query statement below
select s.Score, (SELECT count(distinct(Score)) from Scores m where m.Score >= s.Score) as Rank
from Scores s
order by s.Score descLast updated
Rank Scores
# Write your MySQL query statement below
select s.Score, (SELECT count(distinct(Score)) from Scores m where m.Score >= s.Score) as Rank
from Scores s
order by s.Score descLast updated