mysql> select sname from student,sc where student.sno=sc.sno and sc.sno not in
(select r.sno from (select sno,score from sc,course where sc.cno=course.cno and course.cname='数据库') AS r INNER JOIN
(select sno,avg(score) avg_grade FROM sc group by sno) AS t ON r.sno=t.sno and r.score<t.avg_grade);
一瞬儿光
一瞬儿光
侠客岛的含笑
相关分类