阅读156 返回首页    go 阿里云 go 技术社区[云栖]


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

查询选修了全部课程的学生姓名
: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)

最后更新:2017-04-04 07:03:34

  上一篇:go POJ1740
  下一篇:go 如果Linux闭源,你还会用么?