--1
select * from student
where stuno in
(select stuno from score a,result b
where a.sno=b.sno and a.sname='数学')
--2
select * from student
where sno in
(select sno from result
group by sno,stuno
having count(1)>5)
--3
select * from student
select student.stuno,student.stuname from student
inner join result on student.stuno=result.stuno
group by student.stuno,student.stuname
having count(result.sno)=(select count(*) from score)