按课程号分类,统计相应的选课人数()


按课程号分类,统计相应的选课人数()

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