吉大20春学期《数据库应用技术》在线作业一-0001参考答案

相关主题
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

吉大20春学期《数据库应用技术》在线作业一-0001

试卷总分:100

一、单选题(共25 道试题,共100 分)

1.Given the tables: COUNTRY STAFF id name person cities id name 1 Argentina 1 10 1 Aaron 2 Canada 2 20 2 Adams 3 Cuba 2 10 3 Jones 4 Germany 1 0 5 France 3 5 6 Italy 1 5 the report: id name number_of_countries ---------- ---------- ------------------- 1 Aaron 3 and the SQL statement: SELECT B.id,,COUNT(DISTINCT ) AS number_of_countries FROM country A, staff B WHERE B.id=A.person GROUP BY B.id, HA VING COUNT(DISTINCT )>:count_var Which of the following values does :count_var require to print out the above report?

A.1

B.2

C.3

D.4

正确答案:B

2.两个子查询的结果(),可以执行并、交、差操作

A.结构完全一致

B.结构完全不一致

C.结构部分一致

D.主键一致

正确答案:A

相关文档
最新文档