摘要:一、TopN问题 需要确定使用什么排名函数,包含三种函数:row_number()、rank()、dense_rank() 每个班级的分数为前3名的学生 1 --建表语句 2 create table score(sid string, class string, score int) 3 row
阅读全文
posted @ 2022-08-24 14:41
|
|||
随笔分类 - MySQL
摘要:一、TopN问题 需要确定使用什么排名函数,包含三种函数:row_number()、rank()、dense_rank() 每个班级的分数为前3名的学生 1 --建表语句 2 create table score(sid string, class string, score int) 3 row
阅读全文
posted @ 2022-08-24 14:41
|
|||