SQL 练习13

  • 查询没学过"张三"老师讲授的任一门课程的学生姓名
SELECT * from Student WHERE SId not in (

SELECT SC.SId from Teacher,Course,SC WHERE  Teacher.TId = Course.TId AND Course.CId = SC.CId AND Teacher.Tname='张三')

image

posted @ 2021-08-18 19:48  弩哥++  阅读(31)  评论(0编辑  收藏  举报