- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
1、 查询Student表中的所有记录的Sname、Ssex和Class列。
2、 查询教师所有的单位即不重复的Depart列。
3、 查询Student表的所有记录。
4、 查询Score表中成绩在60到80之间的所有记录。
5、 查询Score表中成绩为85,86或88的记录。
6、 查询Student表中“95031”班或性别为“女”的同学记录。
7、 以Class降序查询Student表的所有记录。
8、 以Cno升序、Degree降序查询Score表的所有记录。
9、 查询“95031”班的学生人数。
10、查询Score表中的最高分的学生学号和课程号。
11、查询‘3-105’号课程的平均分。
12、查询Score表中至少有5名学生选修的并以3开头的课程的平均分数。
13、查询最低分大于70,最高分小于90的Sno列。
14、查询所有学生的Sname、Cno和Degree列。
15、查询所有学生的Sno、Cname和Degree列。
16、查询所有学生的Sname、Cname和Degree列。
17、查询“95033”班所选课程的平均分。
18、查询选修“3-105”课程的成绩高于“109”号同学成绩的所有同学的记录。
1、select sname,ssex,class from student
2、select distinct depart from teacher
3、select * from student
4、select * from score where degree between 60 and 80
5、select * from score where degree in (85,86,88)
6、select * from student where class=95031or Ssex=女
7、select * from student order by class desc
8、select * from score order by cno asc ,degree desc
9、select count(sno) from student where class=95031
10、select * from score where degree=(select max(degree) from score)
11、select avg(degree) from score where cno=3-105
12、select avg(DEGREE) from score where cno like 3% GROUP BY cno HAVING count(cno) 4
13、select sno from score GROUP BY sno HAVING min(DEGREE) 70 and MAX(degree)
14、select x.sname,y.cno,y.degree from student x,score y where x.SNO = y.SNO
15、select x.Sno,y.Cname,x.degree from score x,course y where x.Cno=y.Cno
16、select x.Sname,y.Cname,z.degree from student x,course y,score z where x.Sno=z.Sno and z.Cno=y.Cno
17、select avg(y.DEGREE) from student x, score y WHERE x.SNO = y.SNO and x.CLASS = 95033 GROUP BY y.CNO
18、select x.* from score x, score y where x.CNO = 3-105 and x.DEGREE y.DEGREE and y.CNO = 3-105 and y.SNO = 109
1、查询成绩高于学号为“109”、课程号为“3-105”的成绩的所有记录。
2、查询“张旭“教师任课的学生成绩
3、查询选修某课程的同学人数多于5人的教师姓名
4、查询95033班和95031班全体学生的记录
5、查询存在有85分以上成绩的课程Cno
6、查询出“计算机系“教师所教课程的成绩表
7、查询选修编号为“3-105“课程且成绩至少高于选修编号为“3-245”的同学的Cno、Sno和Degree,并按Degree从高到低次序排序
8、查询选修编号为“3-105”且成绩高于选修编号为“3-245”课程的同学的Cno、Sno和Degree
9、查询成绩比该课程平均成绩低的同学的成绩表
10、查询所有任课教师的Tname和Depart
11、查询至少
原创力文档


文档评论(0)