福建师范大学2022年8月课程考试《高级英语(三)》作业考核
查询选修课程号为“101”课程得分最高的同学,正确的SQL语句是 ______。
A.SELECT 学生.学号,姓名FROM 学生,选课WHERE 学生.学号=选课.学号 AND 课程号=“101” AND 成绩>=ALL (SELECT 成绩 FROM 选课)
B.SELECT 学生.学号,姓名FROM 学生,选课 WHERE 学生.学号=选课.学号 AND 成绩>=ALL(SELECT 成绩 FROM 选课 WHERE 课程号=“101”)
C.SELECT 学生. 学号,姓名 FROM 学生,选课 WHERE 学生. 学号=选课.学号 AND 成绩>=ANY (SELECT 成绩 FROM 选课 WHERE 选课号=“101”)
D.SELECT 学生.学号,姓名 FROM 学生,选课 WHERE 学生.学号=选课.学号 AND 课程号=“101”AND 成绩>= ALL(SELECT 成绩 FROM 选课 WHERE课程号=“101”)
解析:选项A中的子查询并没有限定选择“课程号”为“101”,则此命令选择出来的结果是“101”课程得分大于等于所有科目成绩的记录,如果其余课目的成绩有记录大于“101”科目的最高成绩,则此查询无结果,此选择错误。
选项B中的查询并没有限定选择“课程号”为“101”,则此命令选择出来的结果是所有课程得分大于等于所有“101”科目成绩的记录,如果其余课目的成绩有记录大于“101”科目的最高成绩,则此查询将查询出错误结果,此选项错误。
选项C中的查陶并没有限定选择“课程号”为“101”,则此命令选择出来的结果是所有课程得分大于等于任意“101”科目成绩的记录,此查询将查询出错误的结果,此选项错误。
设学生表和成绩表的结构分别为(学号,姓名,所在系)和(学号,课程名,成绩),如果希望按分数降序查询出“英语系中选修了计算机课程的学生姓名和成绩”,则对应的SQL语句是()。
A. SELECT姓名,成绩FROM学生表,成绩表WHERE所在系一‘英语系’AND课
程名=‘计算机’AND学生表.学号=课程表,学号
B. SELECT姓名,成绩FROM学生表,成绩表WHERE所在系=‘英语系’AND课
程名=‘计算机’AND学生表.学号=课程表.学号ORDER BY成绩ASC
C. SELECT姓名,成绩FROM学生表,成绩表WHERE所在系=‘英语系’AND课
程名=计算机’AND学生表。学号=课程表。学号ORDER BY成绩
D. SELECT姓名,成绩FROM学生表,成绩表WHERE所在系=‘英语系’AND课
程名=‘计算机’AND学生表.学号一课程表.学号ORDER BY成绩DESC
学生(学号(C,8),姓名(C,6),性别(C,2),出生日期(D))选课(学号(C,8),课程号(C,3),成绩(N,5,1)) 查询选修课程号为“007”课程得分最高的学生,正确的SQL语句是( )。
A. SELECT学生.学号,姓名FROM学生,选课WHERE学生.学号=选课.学号 AND课程号=”007”AND成绩 >=ALL(SELECT成绩FROM选课)
B. SELECT学生.学号,姓名FROM学生,选课WHERE学生.学号=选课.学号 AND成绩 >=ALL(SELECT成绩FROM选课WHERE课程号=”007”)
C. SELECT学生.学号,姓名FROM学生,选课WHERE学生.学号=选课.学号 AND成绩 >=ANY(SELECT成绩FROM选课WHERE课程号=”007”)
D. SELECT学生.学号,姓名FROM学生,选课WHERE学生.学号=选课.学号AND 课程号=”007”AND成绩>=ALL(SELECT成绩FROM选课WHERE课程号=”007”)
所有选项都是通过嵌套查询来实现题目的要求,因此来看关键字:ALL要求子查询中的所有行结果为真,结果才为真;ANY只要子查询中有一行能使结果为真,则结果就为真。最高分应该为成绩>=ALL(…),要查询选课号为“007”的同学,所以内外查询中都要用到条件:课程号=”007”。
当前目录下有“学生”表和“成绩”表两个文件,要求查找同时选修了“课程名称”为“计算机”和“英语”的学生姓名,下列SQL语句的空白处应填入的语句为( )。
SELECT姓名FROM学生,成绩;
WHERE学生.学号=成绩.学号;
AND课程名称=”计算机”;
AND姓名__;
(SELECT姓名FROM学生,成绩;
WHERE学生.学号=成绩.学号;
AND课程名称=”英语”)
本小题为SQL.,的嵌套查询,通过内层查找符合条件的记录集合,再通过外层查询检索该集合中相同的记录值,使用的特殊运算符为IN(包含运算)。ANY、ALL和SOME是量词,其中ANY和SOME是同义词,在进行比较运算时只要子查询中有一行能使结果为真,则结果为真;而ALL则要求子查询中的所有行都使结果为真时,结果才为真。EXISTS是谓词,EXISTS和NOTEXISTS是用来检查在子查询中是否有结果返回(即存在元组或不存在元组)。
【题目描述】
Directions: In this part there are 30 incomplete sentences. For each sentence there are four choices marked A, B, C and D. Choose the ONE answer that best completes the sentence. Then blacken the corresponding letter on the Answer Sheet.
16. The driver was at ____ loss when ____ word came that he was forbidden to drive for speeding.
A a;/
B a;the
C the;the
D /;/
高级英语(三)期末考试(A卷)答题纸姓名: 专业:学号: 学习中心:成绩:注意:全卷请在答题纸上作答,否则不得分!I. Among the four choices, choose the one that is the closest in meaning to the italicized word.(20%)1. He tarried to tell his hostess how much he had enjoyed the party.(B)a. neglected b. attempted b. lingered d. struggled2. He was greatly vexed by the new and unexpected development.(B)a. astonished b. annoyed c. enlightened d. contented 3. His face flushed because he had run all the way from the dormitory.(A)a. red b. shaking c. pale d. wet4. Can you vouch for Freds integrity?a. withdraw b. deny c. believe d. attest to5. The crew gave an exuberant shout when the boat got under way.(D)a. stentorian b. boisterous b. enthusiastic d. shrilling6. Unfriendly aliens may be deported.(A)a. kept out b. sent out c. put into prison d. tried in court7. To curtail expending:(A)a. reduce b. increase c. plan d. disclose8. To reproach a child:(D)a. beat b. encourage c. praise d. blame9. Floods abate:(B)a. intensify b. diminish b. spread through d. rise 10. To redeem the mortgage:(C)a. pay b. raise c. buy back d. accept11. To censure a book:(B)a. evaluate b. condemn c. pay for d. favor12. The ministers equivocal answer led to an outcry from the Opposition.(A)a. evasive b. inalienable c. persuasive d. overriding13. After years of delay eh problem has now become urgent.(A)a. procrastination b. dilation c. dilution d. prolonging14. As he got older, his belief in these principles didnt vacillate.(C)a. dither b. shake c. waver d. wobble 15. impeccable(A)a. faultless b. acute c. impending d. mysterious16. makeshift(A)a. adaptable b. malice c. shift d. provision17. enigma(C)a. enormity b. clumsy c. mystery d. rapture18. pageant(D)a. weary b. spectacle c. heaven d. ostensible19. hectic(C)a. Cogent b. heinous c. feverish d. avid20. offset(D)a. Journey b. decline c. start d. compensateII.Fill in the blank with the proper word given (Please write down your answer on the Answer Sheet. 20%)included, excluded, like, dislike, companion, accommodation, traffic, hope for, thankful to, whatever, wherever, liners, berthsI was prepared to _dislike_Max Kelada even before I knew him. The war had just finished and the passenger _traffic_ in the ocean-going _liners_ were heavy. _accommodation_ was very hard to get and you had to put up with _whatever_ the agents chose to offer you. You could not _hope for_a cabin to yourself and I was _thankful to_be given one in which there were only two_berths_. But when I was told the name of my _companion_, my heart sank.It suggested closed port-holes and the night air rigidly_excluded_.III.Translate the following paragraph into English (Please write down your answer on the Answer Sheet 30%)跌倒的是一个女人,花白头发,衣服都很破烂。她从马路边上突然向车前横截过来,车夫已经让开道,但她的破背心没有上扣,微风吹着,向外展开,所以终于兜着车把,幸而车夫早有点停步,否则她要栽一个大跟头,跌到头破血流了。The one who fell was a woman with gray hair and ragged clothes. She suddenly cut in front of the car from the side of the road. The coachman had let her go, but her broken vest didnt buckle up. The breeze blew and spread out, so she finally took the handlebar. Fortunately, the coachman had stopped a little early, otherwise she would fall into a big somersault and break her head.IV. Translate the following paragraph into Chinese.(Please write down your answer on the Answer Sheet. 30%)I like the clutter about the place, the way everything blossomed or seeded or rusted; I like the hundred half-finished projects, the smells, and the way the animals always broke loose. It is calming to herd animals. Often a regular rodeo breaks out - two people and a clever cow can kill a morning but still, it is calming. You laugh for a while, exhausted, and silence is restored, the beasts are back in the pastures, the fences not fixed but disgusted as if they were fixed, ensuring the animalstemporary resignation: and a great calm descends, a lack of urgency, a sense of having to invent something to do until the next time you must run and chase cattle.答:万物百态,花儿绽放,新芽未发,气味芬芳,动物放浪形骸,我沉浸其中。 两个人,一头牛,如同台竞技,便可消磨一个上午的时光,且令人怡然自得。似微笑、似疲惫、又似安静,野兽回归牧场,围栏没有固定,但令人厌恶。好像这种无形中的固定确保动物们暂时的顺从:一种暴风雨前的宁静,一种必须采取行动的感觉,直到下一次你必须做点什么才行。答题卡:IAmong the four choices, choose the one that is the closest in meaning to the italicized word.(20%)12345678910BBADCAADBC11121314151617181920BAACAACDCDII. Fill in the blank with the proper word given (Please write down your answer on the Answer Sheet. 20%)12345disliketrafficlinersaccommodationwhatever678910hope forthankful toberthscomp
查询选修课程号为"101"课程得分最高的同学,正确的SQL语句是
A.SELECT学生.学号,姓名FROM学生,选课WHERE学生.学号=选课.学号 AND课程号="101”AND成绩>=ALL(SELECT成绩FROM选课)
B.SELECT学生.学号,姓名FROM学生,选课WHERE学生.学号;选课.学号 AND成绩>=ALL(SELECT成绩FROM选课WHERE课程号="101")
C.SELECT学生.学号,姓名FROM学生,选课WHERE学生.学号二选课.学号 AND成绩>=ANY(SELECT成绩FROM选课WHERE课程号="101")
D.SELECT学生.学号,姓名FROM学生,选课WHERE学生.学号=选课.学号AND课程号="101" AND成绩>=ALL(SELECT成绩FROM选课WHERE课程号 ="101")
解析:本题所给出的四个选项中:
选项A中的子查询并没有限定选择“课程号”为“101”,则此命令选择出来的结果是“101”课程得分大于等于所有科目成绩的记录,如果其余课目的成绩有记录大于“101”科目的最高成绩,则此查询无结果,此选项错误。选项B中的查询并没有限定选择“课程号”为“101”,则此命令选择出来的结果是所有课程得分大于等于所有“101”科目成绩的记录,如果其余课目的成绩有记录大于“101”科目的最高成绩,则此查询将查询出错误结果,此选项错误。
选项C中的查询并没有限定选择“课程号”为“101”,则此命令选择出来的结果是所有课程得分大于等于任意“101”科目成绩的记录,此查询将杳询出错误结果,此选项错误。
选项D符合题意,将查询出正确结果,故为正确答案。
( 33 )查询选修课程号为 “ 101 ” 课程得分最高的同学,正确的 SQL 语句是
A) SELECT 学生 . 学号 , 姓名 FROM 学生 , 选课 WHERE 学生 . 学号 = 选课 . 学号
AND 课程号 = "101" AND 成绩 >=ALL(SELECT 成绩 FROM 选课 )
B) SELECT 学生 . 学号 , 姓名 FROM 学生 , 选课 WHERE 学生 . 学号 = 选课 . 学号
AND 成绩 >=ALL(SELECT 成绩 FROM 选课 WHERE 课程号 = "101" )
C) SELECT 学生 . 学号 , 姓名 FROM 学生 , 选课 WHERE 学生 . 学号 = 选课 . 学号
AND 成绩 >=ANY(SELECT 成绩 FROM 选课 WHERE 课程号 = "101" )
D) SELECT 学生 . 学号 , 姓名 FROM 学生 , 选课 WHERE 学生 . 学号 = 选课 . 学号
AND 课程号 = "101"AND 成绩 >=ALL(SELECT 成绩 FROM 选课 WHERE 课程号 = "101" )
![](https://assets.51tk.com/asset/images/fa784feb85df2bdbb2452fc7389a88c.gif)
B.S(学号,姓名),D(学院,学院领导),C(课程号,课程名,成绩)
C.S(学号,姓名),D(学院,学院领导),C(课程号,课程名),SC(学号,课程名,成绩)
D.S(学号,姓名,学院,学院领导),C(课程号,课程名),SC(学号,课程号,成绩)
B.姓名
C.系名
D.课程号
B.COUNT(课程号)>3
C.COUNT(DISTINCT学号)>=3
D.COUNT(课程号)>=3
相关考题:
- 需要检修作业人员执行的安全措施,由工作票填写人在相应的措施后注明“检修自理”,工作负责人完成该项安全措施后,在对应的“执行情况”栏内填写“()”。
- “广告上的每一个字、图表、符号都应该有助于你所要传达的讯息的功效”说明了品牌广告传播具有()的特性。A、复合性B、可以重复传播C、销售信息经过严格筛选D、有明确目的
- 依据《电业安全工作规程(第1部分:热力和机械部分)》,工作票“必须采取的安全措施”栏中提出需要检修作业人员执行的安全措施,由()在相应的措施后注明“检修自理”。 A.工作负责人B.工作成员C.工作票签发人D.工作许可人
- 粘接中,钢丝砂轮清理浮胶,对帆布的毛糙和破损不得超过原厚度的()。A、1/4B、1/2;C、1/3;D、1/5。
- 巡线时禁止()。 A、穿越农田B、横穿公路C、泅渡D、穿越隧道
- 目前世界上韧性最好的天然纤维,同等粗细的钢铁远不如它坚韧的是()。
- 三相四线制中性线不得加装熔断器。() 此题为判断题(对,错)。
- 正平衡计算煤耗对入炉煤机械采样装置的技术要求有哪些?
- 烟煤中变质程度最高的是贫煤,变质程度最低的是长焰煤。
- 经审核、审批同意的供用电合同,由供电企业法定代表人(负责人)或其委托代理人进行签约。() 此题为判断题(对,错)。