答案:select s.Sid,S.Sname,count(score),sum(score), sum(case when SC.Cid=01 then score else null end) as score_1, sum(case when SC.Cid=02 then score else null end) as score_2, sum(case when SC.Cid=03 then score else null end) as score_3 from Student as s,SC,Course where s.Sid = SC.Sid and SC.Cid = Course.