题目:https://leetcode.com/problems/rank-scores/
代码(github):https://github.com/illuz/leetcode
给分数排名。
- 把 SELECT 套进去。
- 用 CASE 和 变量,逐行处理,速度比 1 变了很多。
题目:https://leetcode.com/problems/rank-scores/
代码(github):https://github.com/illuz/leetcode
给分数排名。