数据库 student sc course

查询选修了软件工程课程的学生的名字 有两种方法

使用in关键字 select sname from student where sno in (select sno from sc where cno in (select cno from course where cname='软件工程'))

连接查询      select sname from student,sc,course where student.sno=sc.sno and sc.cno=course.cno and cname='软件工程' 

原文地址:https://www.cnblogs.com/whutqueqiaoxian/p/4797377.html