请问各位大师,文理成绩上段统计
cj022902.rar
(26.89 KB)
,要求按照ksh的9-11位分类,各类在520分以上的各多少人,显示出班级
SELECT szbj,SUM(IIF(zf_y>=529,1,0)) rs,"12130229150" lb FROM cj022902 WHERE SUBSTR(ksh,9,3)="150" GROUP BY szbj
SELECT szbj,SUM(IIF(zf_y>=509,1,0)) rs,"12130229110" lb FROM cj022902 WHERE SUBSTR(ksh,9,3)="110" GROUP BY szbj