我的 MySQL 表是
htno name fathername subcode subject internals externals total result tempcr
12 Mahesh Rajesh 256 Maths 20 55 75 P 1
12 Mahesh Rajesh 257 Science 18 60 78 P 1
12 Mahesh Rajesh 256 Maths 20 55 75 P 1
12 Mahesh Rajesh 257 Science 18 60 78 P 1
表有重复行
我需要的输出是
HTNO TOTAL MARKS SECURED PERCENTAGE TOTAL SUBJECTS SUBJECTS ATTEMPTED SUBJECTS ABSENT SUBJECTS PASSED BACKLOGS
12 153 76.5% 2 2 0 2 0
我得到的输出是
HTNO TOTAL MARKS SECURED PERCENTAGE TOTAL SUBJECTS SUBJECTS ATTEMPTED SUBJECTS ABSENT SUBJECTS PASSED BACKLOGS
12 306 153% 4 4 0 4 0
这是实际计算的两倍
我想在此计算中排除那些重复的行
请给我一些提示