问题 单项选择题

以下是CLASSES和SCHEDULE表的结构(所包含的列及列的定义):
CLASSES
---------
ID NUMBER(9)
CLASS_NAME VARCHAR2(20)
TEACHER_ID NUMBER(9)
SCHEDULE
------------
CLASS_TIME DATE
CLASS_IDNUMBER(9)
如需要创建一个视图,而这个视图将显示每节课的上课时间(class time)、课程名(class name)并按教师id (teacher id)的顺序排序。使用了如下的语句,请问这一语句将提供哪一个结果
CREATE VIEW class_schedule

AS
SELECT

c.class_name, s.class_time
FROM

classes c, schedule s
WHERE

c.id=s.class_id;A.该语句将创建视图CLASS_SCHEDULE并取得所希望的结果
B.该语句将创建视图CLASS_SCHEDULE,但是不能获取所希望的结果
C.该语句将返回一个语法错误,因为创建视图(Create View)语句不能基于连接查询(Join Query)
D.该语句将返回一个语法错误,因为创建视图(Create View)语句没有包含ORDER BY子句

答案

参考答案:B

解析: 这一题是测试对创建视图命令的理解程度。根据有关如何创建视图的介绍及随后的例题,可以确定本题创建视图语句的语法是没有任何问题的,所以选项C和D肯定是错误的。
由于题目要求显示的结果要按教师id (teacher_id)的顺序排序,而在这个题目的创建视图语句中并没有ORDER BY teacher_id子句,因此尽管显示的内容是对的,但并不没有按教师id的顺序显示,不能获取所希望的结果。所以选项A是错误的,而只有选项B是正确的。

填空题

Part 4


Questions 26-45


·Read the following passage and choose the best word for each space.
·For questions 26-45, mark one letter A, B, C or D on the Answer Sheet.
During the past ten years (26) attention has been given to "telling it like it is". My impression is that this devotion to (27) one’s mind has more often led to hurt feelings and ruined relationships than (28) great joy.
I think we generally agree that never expressing real feelings and (29) all less-than-lovely thoughts about each other always leads to constructive communication. It’s a great (30) to allow ourselves to admit our human weaknesses and pursue more honest relationships with others. (31) we need to keep a balance between telling it all and telling nothing.
Recently I received a letter from a mother who had been (32) by her son to attend a weekend meeting with him. Under pressure from the group, her defenses cracked and she heard herself (33) her son for the first time that he (34) an accident—that she hadn’t been planning to have a child. He (35) told her that he couldn’t recall a single day in his childhood that he’d been happy. We cried and (36) ; I thought telling the truth had been good for us. But the trouble is, it wasn’t the whole truth. By the time Tommy was born I did want him, and at (37) he was happy. Ever since that day, we (38) . by some terrible feelings we exchanged. I must admit I’ve (39) the conclusion that some things are better left uncovered. Honesty is a fine policy, but we need a new sense of (40) . Disclosing is not a solution to every problem (41) even an end in itself. It’s useful under some circumstances and terribly hurtful under (42) . It’s a good idea, I think, to bite your (43) for ten or fifteen minutes before saying what’s (44) your mind. Try to decide whether it’s going to open up new and better ways of communication or (45) wounds that may never heal.

A.told

B.had told

C.telling

D.to tell

单项选择题 A1/A2型题