stu(id,name)
cla-stu(stuid,claid)
sco(stuid,score)
select claid from cla-stu where 1=1
and stuid in (
select stuid from sco where score>90)
group by claid having count(stu)>10
stu(id,name)
cla-stu(stuid,claid)
sco(stuid,score)
select claid from cla-stu where 1=1
and stuid in (
select stuid from sco where score>90)
group by claid having count(stu)>10