查询所有同学的学号、姓名、选课数、总成绩

select
Student.S_ID,
Student.Sname,
count(SC.C_ID),
sum(score) from Student left Outer join SC on Student.S_ID=SC.S_ID group by Student.S_ID,Sname

posted @ 2020-11-24 14:43  抬头就能看到阳光  阅读(6588)  评论(0编辑  收藏  举报