标签:技术 http span student 大于 group png inf 姓名
SELECT Sid,AVG(score) FROM sc GROUP BY Sid;
SELECT Sid,AVG(score) AS avg FROM sc GROUP BY Sid HAVING avg >70;
SELECT s.Sid,s.Sname,avg FROM student AS s JOIN (SELECT Sid, AVG(score) AS avg FROM sc GROUP BY Sid HAVING avg >70) AS k ON s.Sid = k.Sid;
标签:技术 http span student 大于 group png inf 姓名
原文地址:https://www.cnblogs.com/zunfengliu/p/12198743.html