MySQL查询两门及两门以上不及格的学生,显示姓名

表结构:表名   score

查询语句:select name from score group by name having sum(score<60)>=2;

原文地址:https://www.cnblogs.com/qinxiaowan/p/9838864.html