您的位置:首页 > 其它

查询选修了全部课程的学生姓名

2013-01-09 15:42 609 查看
查询选修了全部课程的学生姓名

:student 是学生表 course 是选课表 sc 是课程表

select sname

from student

where not exists

(select *

from course

where not exists

(select *

from sc

where sno =student.sno

and cno=course.cno)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: