select student.s_id,student.s_name,count_course,sum_score
from student
left join
(select count(score.c_id)as count_course,sum(score.s_score)as sum_score from score)as a
on student.s_id=score.s_id
group by student.sid,student.s_name;
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/267617.html
標籤:基礎類
