SQL 练习11

  • 查询至少有一门课与学号为" 01 "的同学所学相同的同学的信息
SELECT * from Student WHERE SId in 
(SELECT SId from sc WHERE cid in (SELECT cid from sc WHERE sid='01'))

image

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