-项目一.
--开发学生选课表中状态为报名,的课程名称有哪些?
--需要查询( 课程表 )( 选课表 )表?
--子查询的对象( 课程表中为报名的 )
--使用的查询方法(子查询 )
--第一步.查询课程表和学生选课表
select from Course
selectfrom StuCou
--第二步.查询学生选课表,报名状态是报名的课程编号
select couno from StuCou
where State='报名'
--第三步.使用纵向嵌套子查询查询结果
select stuno,stuname
from Student
where exists (select StuNo
from StuCou
where StuNo=student.StuNo and State='报名')