题解 | #最差是第几名(一)#
最差是第几名(一)
https://www.nowcoder.com/practice/ae5e8273e73b4413823b676081bd355c
# sum() over(order by)开窗函数:按照grade列排序,将number依次相加 select grade, sum(number) over(order by grade) as t_rank from class_grade order by grade;
最差是第几名(一)
https://www.nowcoder.com/practice/ae5e8273e73b4413823b676081bd355c
# sum() over(order by)开窗函数:按照grade列排序,将number依次相加 select grade, sum(number) over(order by grade) as t_rank from class_grade order by grade;
相关推荐