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