某SQL Server2005数据库系统中有一个记录学生成绩student表,其内容如下图所示。现在要统计不同科目的平均成绩(科目列为CourseID,成绩列为Score),应该使用的语句是( )。

admin2019-03-28  23

问题 某SQL Server2005数据库系统中有一个记录学生成绩student表,其内容如下图所示。现在要统计不同科目的平均成绩(科目列为CourseID,成绩列为Score),应该使用的语句是(    )。

选项 A、Select avg(Score)from student group CourseID
B、Select avg(Score)from student group by CourseID
C、 Selectavg(CourseID) from student group Score
D、 Selectavg(CourseID) from student group by Score

答案B

解析
转载请注明原文地址:https://kaotiyun.com/show/jJpD777K
0

最新回复(0)