假定学号的第11、12位为班级代码,要计算各班学生选修课程号为“410001”课程的平均成绩,正确的SQL命令是()。
A. SELECT SUBSTR(xh,11,2) AS 班级,AVG(cj) AS 平均分 FROM xscj; WHERE kch="410001" GROUP BY 1
B. SELECT 班级 AS SUBSTR(xh,11,2), 平均分 AS AVG(cj) FROM xscj; WHERE kch="410001" GROUP BY班级
C. SELECT SUBSTR(xh,11,2) AS 班级,AVG(cj) AS 平均分 FROM xscj; WHERE kch="410001" ORDER BY 1
D. SELECT 班级 AS SUBSTR(xh,11,2), 平均分 AS AVG(cj) FROM xscj; WHERE kch="410001" ORDER BY班级