select sname from student
where sno in(
select a.sno from studentcourse a join course b
on a.cno=b.cno
where b.cname='数据库原理' and a.score>90)
select a.sclass as 班级,count(*) as 不及格人数 from
student a join studentcourse b
on a.sno=b.sno
where b.score
select sname from student
where sno in(
select a.sno from studentcourse a join course b
on a.cno=b.cno
where b.cname='数据库原理' and a.score>90)
select a.sclass as 班级,count(*) as 不及格人数 from
student a join studentcourse b
on a.sno=b.sno
where b.score