如何对学生列表进行排名并在php中显示他们的名字

时间:2017-07-26 18:23:41

标签: php mysql

Mysql表结构如下所示:

subject ca  quiz exam exam_cumulative positionineachcourse matric_no   name

Maths   10   20   34      64                                HT/001    John
Econs   14   14   40      68                                HT/002    Mark
History 20   30   60     110                                HT/003    Grace 
Chem    15   15   50      80                                HT/004    Alice
Bio     12   13   60      85                                HT/005    Larry

如何在每个课程中获得每个学生的位置,然后获得他们的整体职位,如1ST,SND,3RD,4TH和5TH?

0 个答案:

没有答案
相关问题