閱讀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閉源,你還會用麼?