按课程号分类,统计相应的选课人数()
按课程号分类,统计相应的选课人数()
A.select cid, count(*) from student group by cid
B.select cid, count(distinct sid) from sc group by cid
C.select cid, count(distinct sid) from student group by cid
D.select cid, count(distinct cid) from sc group by cid
正确答案:select cid, count(distinct sid) from sc group by cid
Tag:SqlServer数据库原理与应用 人数 课程
时间:2023-12-26 10:57:47
- 上一篇:属于不属于聚合函数的是()
- 下一篇:查询选修了2门课程以上的学生学号()