对S_T数据库,查询既选修了“数学”又选修了“信息系统”的学生。
select a.sno,sname
from student a,sc b,course c
where a.sno=b.sno and b.cno=c.cno and cname='数学'
intersect
select a.sno,sname
from student a,sc b,course c
where a.sno=b.sno and b.cno=c.cno and cname='信息系统'
select a.sno,sname
from student a,sc b,course c
where a.sno=b.sno and b.cno=c.cno and cname='数学'
intersect
select a.sno,sname
from student a,sc b,course c
where a.sno=b.sno and b.cno=c.cno and cname='信息系统'