SELECT bjmc,(sele COUNT(1) FROM 初一半期成绩 WHERE t.bjmc=bjmc AND xm11>=(SELECT MIN(xm11) FROM
(sele TOP 10 PERCENT xm11 FROM 初一半期成绩 ORDER BY xm11 desc) k)) 语文,;
(sele COUNT(1) FROM 初一半期成绩 WHERE t.bjmc=bjmc AND xm21>=(SELECT MIN(xm21) FROM
(sele TOP 10 PERCENT xm21 FROM 初一半期成绩 ORDER BY xm21 desc) k)) 数学,;
(sele COUNT(1) FROM 初一半期成绩 WHERE t.bjmc=bjmc AND xm31>=(SELECT MIN(xm31) FROM
(sele TOP 10 PERCENT xm31 FROM 初一半期成绩 ORDER BY xm31 desc) k)) 英语,;
(sele COUNT(1) FROM 初一半期成绩 WHERE t.bjmc=bjmc AND xm41>=(SELECT MIN(xm41) FROM
(sele TOP 10 PERCENT xm41 FROM 初一半期成绩 ORDER BY xm41 desc) k)) 政治,;
(sele COUNT(1) FROM 初一半期成绩 WHERE t.bjmc=bjmc AND xm51>=(SELECT MIN(xm51) FROM
(sele TOP 10 PERCENT xm51 FROM 初一半期成绩 ORDER BY xm51 desc) k)) 历史,;
(sele COUNT(1) FROM 初一半期成绩 WHERE t.bjmc=bjmc AND xm61>=(SELECT MIN(xm61) FROM
(sele TOP 10 PERCENT xm61 FROM 初一半期成绩 ORDER BY xm61 desc) k)) 地理,;
(sele COUNT(1) FROM 初一半期成绩 WHERE t.bjmc=bjmc AND xm71>=(SELECT MIN(xm71) FROM
(sele TOP 10 PERCENT xm71 FROM 初一半期成绩 ORDER BY xm71 desc) k)) 生物,;
(sele COUNT(1) FROM 初一半期成绩 WHERE t.bjmc=bjmc AND xm81>=(SELECT MIN(xm81) FROM
(sele TOP 10 PERCENT xm81 FROM 初一半期成绩 ORDER BY xm81 desc) k)) 语数英,;
(sele COUNT(1) FROM 初一半期成绩 WHERE t.bjmc=bjmc AND xm91>=(SELECT MIN(xm91) FROM
(sele TOP 10 PERCENT xm91 FROM 初一半期成绩 ORDER BY xm91 desc) k)) 总分;
FROM 初一半期成绩 t GROUP BY bjmc ORDER BY
基本上实现