TA贡献3条经验 获得超1个赞
select c.classid,classname,coursename,avg(grade)
from class c join student s join grade g
on c.classid=s.classid and s.studentid=g.studentid
group by c.classid,classname,coursename;
TA贡献2条经验 获得超0个赞
那查询每个班级每门课程成绩前二的学生***怎么查,还有查询各科成绩都及格的学生***和查询每个班级总分最高的学生***
10+年DBA老司机带你轻松玩转 SQL
¥ 48.00
举报