表结构如下:
学生id 课程id 分数
student_id course_id score
1 1 60
1 2 50
1 3 70
2 1 20
2 2 40
...
...
不考虑总分数相同的情况下,怎么查询比student_id=10的总分数高的人数,即自己的排名情况?
试试这个看行吗