MySQL/178. Rank Scores 分數排名

題目       代碼部分一(1537ms) SELECT Score,(SELECT COUNT(DISTINCT Score) FROM Scores s2 WHERE s2.Score>=s1.Score) AS Rank FROM Scores s1 ORDER BY Rank   代碼部分二(910ms) SELECT s1.Score,COUNT(DI
相關文章
相關標籤/搜索