SELECT Score,( SELECT COUNT( * ) FROM ( SELECT DISTINCT Score s FROM Scores ) t WHERE s >= Score ) Rank FROM Scores ORDER BY Score DESC
转载于:https://my.oschina.net/u/3424826/blog/1843715
SELECT Score,( SELECT COUNT( * ) FROM ( SELECT DISTINCT Score s FROM Scores ) t WHERE s >= Score ) Rank FROM Scores ORDER BY Score DESC
转载于:https://my.oschina.net/u/3424826/blog/1843715