原文:Oracle数据库作业-6 查询成绩比该课程平均成绩低的同学的成绩表

查询成绩比该课程平均成绩低的同学的成绩表。 select from score a where a.degree between and select avg degree from score b where a.cno b.cno 查询所有任课教师的Tname和Depart. select tname,depart from teacher where tno in select tno f ...

2016-10-16 20:14 0 6643 推荐指数:

查看详情

mysql--学生课程成绩表

创建student: CREATE TABLE `student` ( `sid` INT(11) NOT NULL AUTO_INCREMENT, `sname` VARCHAR(20) NOT NULL DEFAULT '0', `sage` INT(11) NOT NULL ...

Thu Apr 28 20:05:00 CST 2016 0 3829
Oracle数据库作业-6 29、查询选修编号为“3-105“课程成绩至少高于选修编号为“3-245”的同学的Cno、Sno和Degree,并按Degree从高到次序排序。 select tname,prof from teacher where depart = '计算机系

29、查询选修编号为“3-105“课程成绩至少高于选修编号为“3-245”的同学的Cno、Sno和Degree,并按Degree从高到次序排序。 select tname,prof from teacher where depart = '计算机系' and prof ...

Mon Oct 17 04:13:00 CST 2016 0 4138
设有一数据库,包括四个:学生(Student)、课程表(Course)、成绩表(Score)以及教师信息(Teacher)。

一、 设有一数据库,包括四个:学生(Student)、课程表(Course)、成绩表(Score)以及教师信息(Teacher)。四个的结构分别如表1-1的(一)~(四)所示,数据如表1-2的(一)~(四)所示。用SQL语句创建四个并完成相关题目 ...

Mon Oct 10 04:30:00 CST 2016 0 1426
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM