- 84
- 0
- 约1.17万字
- 约 52页
- 2017-08-24 发布于湖北
- 举报
习题 4.2: (略) 2.检索年龄大于23岁的男同学的学号与姓名; Select sno,snam from s where age23 and sex=‘M’; 习题 4.2: (略) 3.检索学号为S3学生所学课程的课程号与任课老师名; Select cno, tanme from c,sc where c.cno=sc.cno and sno=‘S3’ 习题 4.2: (略) 4.检索至少选修LIU老师所授课程中一门课的女学生姓名; Select distinct sname from s,c,sc where s.sno=sc.sno and c.cno=sc.cno and tname=‘LIU’ and sex=‘F’; 习题 4.2: 5.检索WAN同学不学的课程的课程号; Select cno from c Except Select cno from s,sc where s.sno=sc.sno and sname=‘WAN’; ?Select distinct cno from sc 习题 4.2: 6.检索至少选修两门课程的学生学号; Select distinct x.sno from sc x,sc y
原创力文档

文档评论(0)