Select sno, sname from student where sno not in (select distinct sno from sc where grade is null)首先获取有不及格科目的学生的学号,再去获取不是这些学号里面的学生就是没有不及格的学生了