问题 单项选择题


阅读下列程序说明和程序,在每小题提供的若干可选答案中,挑选一个正确答案。

本大题的程序一、二使用的“学生”表和“选修课”表如下:
“学生”表:
学号 姓名 政治面貌 年龄 学分 科目号
20001 王 海 团员25 401
20002 李 盐 预备党员 20 302
20003 刘小鹏 团员22 401
20004 隋小新 团员20 603
20005 李明月 预备党员 24 401
20006 孙民主 预备党员 21 302
20007 赵福来 预备党员 22 603
“选修课”表:
科目号 科目名
01日语
02法律
03 微积分
【程序说明一】 使用SQL语句查询每个学生及其选修课程的情况:
【程序一】
SELECT 学生.*,选修课.*;
FROM 学生,选修课;
WHERE (1) = (2)
【程序说明二】 使用SQL语句求选修了法律课程的所有学生的学分总和:
【程序二】
SELECT (3) (学生分);
FROM 学生;
WHERE 科目号 IN;
(SELECT 科目号;
FROM (4)
WHERE 科目号=“法律”)
【程序说明三】 设有s(学号,姓名,性别)和sc(学号,课程号,成绩)两个表,下面SQL的
SELECT 语句检索选修的每门课程的成绩都高于或等于85分的学生的学号、姓名和性别。
【程序三】
SELECT 学号,姓名,性别FROM s
WHERE (5) (SELECT * FROM sc WHERE sc. 学号=s. 学号 AND 成绩<85)

A.选修课

B.学生

C.学生.选修课

D.成绩

答案

参考答案:A

解析: 一个SELECT—FROM—WHERE语句称为一个查询块。将一个查询块嵌套在另一个查询块的WHERE 子句或HAVING 短语的条件中的查询称为嵌套查询。SUM()实现了对“学业分”求和。 嵌套查询中,选择条件科目号=“法律”的字段在“选修课”表中,所以嵌套查询来自“选修课”表。

单项选择题

The first and most important agents of socialization are the people who care for infants. In the earliest months, messages from nurturers constitute the child’’s basic understanding of the world around it. This is the infant’’s first introduction to the language that shapes perception and elicits emotion.Another powerful source of information and socialization is the friendship of peers. Peers are equals that one can deal with on the same level as oneself, whereas parents are superiors. The heavy emotional overlay of family relationships makes some kinds of learning difficult.Much formal socialization is placed in the hands of professionals. Teachers from kindergarten on are specifically designated agents of socialization. Ideally, a teacher is one who has both knowledge and the skills to present it. During the course of teaching their subjects, classroom instructors provide role models and attempt to convey the excitement of learning itself.In earlier times, parents, friends and teachers would comprise the list of primary childhood socializers. Children’’s books, comics and magazines might also have been mentioned as sources of information on norms and role models. Today one must add three powerful indirect or non-personal socialization agents: radio, movies and television. Many people learn about politics, form a vision of well-being, and develop attitudes towards others from what they see on the screen and hear through the speakers.

Which of the following statements is NOT implied in the passage

A.Teachers are sociable.

B.Teachers are role models.

C.Teachers are paid agents of socialization.

D.Teachers are knowledgeable and skillful.

问答题 简答题