求和‘吴小晴’选课一样的学生的姓名? 求大神教下怎么做
sql吧
全部回复
仅看楼主
level 1
OBinBinO33 楼主
2017年11月04日 12点11分 1
level 2
select * from 表名 where 课程号=“”
2017年11月14日 13点11分 2
很怕是excel哦
2017年11月22日 13点11分
level 3
select 姓名 from Student where 学号 in(select 学号 from SC WHERE 课程号 in(select 课程号 from SC where 学号=(select 学号 from Student where 姓名='吴小晴')))
第一个表Student 第二个表 SC
2017年11月28日 13点11分 4
level 2
select distinct 姓名 from 表1 where 所在系='计算机系'
2017年12月05日 02点12分 5
1