您好,欢迎来到纷纭教育。
搜索
您的当前位置:首页【力扣(LeetCode)】【MySQL】【178.分数排名】

【力扣(LeetCode)】【MySQL】【178.分数排名】

来源:纷纭教育

学习时间:

        2023年2月22日


题目描述:


 题解分享:

# 作     者 : 繁 华 倾 夏
 
# 力扣(LeetCode):178. 分数排名
 
# MySQL 数据库

select a.Score as score,
(select count(distinct b.Score) from Scores b where b.Score >= a.Score) as 'rank'
from Scores a
order by a.Score desc

【繁华倾夏】【每日力扣题解分享】【Day39】


因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- fenyunshixun.cn 版权所有 湘ICP备2023022495号-9

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务