- 相关子查询
求学过001号课程的同学的姓名
Select Sname
From Student Stud
Where S# in ( Select S#
From SC
Where S# = Stud.S# and C# = ‘001’ ) ;
这里子查询里为什么还要加上S# = Stud.S#
来源:CSDN
作者:qq_37866436
链接:https://blog.csdn.net/qq_37866436/article/details/104113019