select s.sno, s.sname, tmp.avg_sc
from student s
join (select sno, ROUND(avg(score), 2) avg_sc from sc group by sno having avg_sc < 60) tmp on s.sno = tmp.sno;
注:这题和第三题一样哈
select s.sno, s.sname, tmp.avg_sc
from student s
join (select sno, ROUND(avg(score), 2) avg_sc from sc group by sno having avg_sc < 60) tmp on s.sno = tmp.sno;
注:这题和第三题一样哈