DQL
select studentId '学号',userName '学生名称',
count(score) '学生各科目数量',
sum(score) '学生各科目总分',
avg(score) '各科目平均分'
from result inner join student on result.studentId=student.id
GROUP BY studentId,userName
having avg(score)>60
ORDER BY avg(score) desc;
select * from result inner join student on result.studentId=student.id;