高等继续教育 / 数据库程序设计
正确率:100%
题型描述: 单选题
统计每班男生女生的人数,以下写法正确的是( )
A.SELECT LEFT(学号,4) AS 班级,性别,COUNT(学号) AS每班人数 FROM 学生 GROUP BY LEFT(学号,4) AS 班级, 性别
B.SELECT LEFT(学号,4) AS 班级,性别,COUNT(学号) AS 每班人数 FROM 学生 GROUP BY LEFT(学号,4),性别
C.SELECT LEFT(学号,4) AS 班级,性别,COUNT(学号) AS 每班人数 FROM 学生 GROUP BY LEFT(学号,4)
D.SELECT LEFT(学号,4) AS 班级,性别,COUNT(学号) AS 每班人数 FROM 学生 GROUP BY LEFT(学号,4) AND 性别
统计每班男生女生的人数,以下写法正确的是( )
A.SELECT LEFT(学号,4) AS 班级,性别,COUNT(学号) AS每班人数 FROM 学生 GROUP BY LEFT(学号,4) AS 班级, 性别
B.SELECT LEFT(学号,4) AS 班级,性别,COUNT(学号) AS 每班人数 FROM 学生 GROUP BY LEFT(学号,4),性别
C.SELECT LEFT(学号,4) AS 班级,性别,COUNT(学号) AS 每班人数 FROM 学生 GROUP BY LEFT(学号,4)
D.SELECT LEFT(学号,4) AS 班级,性别,COUNT(学号) AS 每班人数 FROM 学生 GROUP BY LEFT(学号,4) AND 性别
参考答案:
佳题速递: