未分类题

在学籍管理中,设有4个表,关系模式分别为:
ST[JDENT(SNO,SNAME,SEX,BIRTFtDAY,CLASS)
TEAC腿R(1FNO,TNAME.SEX.BIRTHDAY,PROFESSION,DEPARTMENT)
CO[JRSE(CNO,CNAME,TNO)
SCORE(SNO,CNO,DEGREE)
说明:学生关系模式中:SNO:学号;SNAME:姓名;SEX:性别;BIRTHDAY:出生口期;CI.ASS:班级:教师关系模式巾:TNO:教师号;TNAME:姓名;SEX:性别;BIRTHDAY:I叶{生口期;PRO—FESSION:职称;DEPARTMENT:所在系;
课程关系模式中:CNO:课程号;CNAME:课程名;TNO:任课教师号;
成绩关系模式中:SNO:学号;CNO:课程号;DEGREE:分数。
请用SQI。查询语句实现下列操作:
1)显示教师所有的单位,即不重复的DEPARTMENT列。
2)显示STIJDENT表中'95031.'班或性别为“女”的同学记求。
3)以CNO升序,DEGREE降序显示SCORE表的所有记录。
4)显示'9503l”班的学生人数。
5)显示SCORE表中至少有5名学生选修的并I:2 3 H:头的课程号的平均分。
6)显示最低分大于70,最高分小于90的SNO列。
7)显示选修“3一105”课程的成绩高于“109”号同学成绩的所有同学的记录。
8)显示SCORE表中选学多门课程的同学中分数为非最高分成绩的记录。
9)列出学号为“108'’的同学同年出生的所有学生的SNO、SNAME和BIRTHDAY。
10)显示“张三”教师任课的学生成绩。

A.SEX.BIRTHDAY,PROFESSION,DEPARTMENT)
CO[JRSE(CNO,CNAME,TNO)
SCORE(SNO,CNO,DEGREE)
说明:学生关系模式中:SNO:学号;SNAME:姓名;SEX:性别;BIRTHDAY:出生口期;CI.ASS:班级:教师关系模式巾:TNO:教师号;TNAME:姓名;SEX:性别;BIRTHDAY:I叶{生口期;PRO—FESSION:职称;DEPARTMENT:所在系;
课程关系模式中:CNO:课程号;CNAME:课程名;TNO:任课教师号;
成绩关系模式中:SNO:学号;CNO:课程号;DEGREE:分数。
请用SQI。查询语句实现下列操作:
1)显示教师所有的单位,即不重复的DEPARTMENT列。
2)显示STIJDENT表中'95031.'班或性别为“女”的同学记求。
3)以CNO升序,DEGREE降序显示SCORE表的所有记录。
4)显示'9503l”班的学生人数。
5)显示SCORE表中至少有5名学生选修的并I:2

【参考答案】

l)SELECT DISTICT DEPARTMENT FROM TEACHER;2)SELECT* FROM STUD......

(↓↓↓ 点击下方‘点击查看答案’看完整答案 ↓↓↓)
热门 试题

未分类题
You should proofread the passage on the Answer Sheet and correct it in the following way:There are great many reasons for studying what philosophers have said 79. ______in the past. One is that we cannot separate the history of philosophy from which 80. ______of sciencE.Philosophy is largely discussion about matters on which few people are 81. ______quite certain, and those few hold opposite opinions. As knowledge increases,Philosophy buds off the sciences. For an example, in the ancient world and 82. ______the Middle Ages philosophers discussed motion. Aristotle and St. ThomasAquinas taught that a moving body would slow down until a force were 83. ______constantly applied to it. They were wrong. It goes on moving unlesssome-thing slows it down. But they had good arguments on their side, and ifwe study these, and the experiments which proved them right, this will help 84. ______us to distinguish truth from false in the scientific controversies of today. We 85. ______also see how different philosopher reflects the social life of his day. 86. ______Plato and Aristotle, in the slave-owning society of ancient Greece,thought man's highest state was contemplation rather than activity. In theMiddle Ages St. Thomas believed a regular feudal system of nine ranks of 87. ______Angels. Herbert Spencer, in the time of free competition between capitals,found the key to progress the survival of the fittest. Thus Marxism is seen tofit into its place as the philosophy for the workers, the only class with a futurE.88. ______(74)
A.Philosophy