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去掉为何不行
![[阴险]](/static/emoticons/u9634u9669.png)
3-还有sno =student.sno是什么意思?sno是student还是sc表的
4-同问cno=course.cno
5-感谢大佬求大佬解答