SQL Server 问题提问查询选修了全部课程的学生姓名s
sql吧
全部回复
仅看楼主
level 2
威仔糕🌠 楼主
SQL Server 问题提问
查询选修了全部课程的学生姓名
select sname
from student
where not exists
(select *
from course
where not exists
(select *
from sc
where sno =student.sno
and cno=course.cno)
1-为何要用not exists?
2-我把两个not去掉为何不行[阴险]
3-还有sno =student.sno是什么意思?sno是student还是sc表的
4-同问cno=course.cno
5-感谢大佬求大佬解答[小乖]
2018年11月18日 08点11分 1
1