奥鹏作业答案 联系QQ:3326650399 微信:cs80188
【熊猫奥鹏】-[吉林大学]吉大20年3月《数据库应用技术》作业考核试题
试卷总分:100 得分:100
第1题,How many rows can be retrieved using a single SELECT INTO statement?
A、Only one row
B、As many as are in the result
C、As many as are host variables used in the call
D、As many as host variable array structures can hold
正确答案:
第6题,Given an ODBC/CLI program with a single connection, two threads and the following actions which complete successfully:
Thread 1: INSERT INTO mytab VALUES (1)
Thread 2: INSERT INTO mytab VALUES (2)
Thread 1: COMMIT
Thread 2: INSERT INTO mytab VALUES (3)
Thread 1: ROLLBACK
Thread 2: COMMIT
How many records will be inserted and retained in the table MYTAB?
A、0
B、1
C、2
D、3
正确答案:
第10题,The following commands are issued against a data source containing table user2.org:
CREATE ALIAS user1.org FOR sample.org
CREATE TABLE org.sample ( c CHAR(1))
CREATE ALIAS sample.org FOR user2.org
CREATE ALIAS user2.sample FOR sample.org
Given the user SAMPLE issues the following statement:
SELECT * FROM sample
For which of the following database objects will access be attempted?
A、user2.org
B、org.sample
C、sample.org
D、sample.sample
正确答案:
第13题,A cursor is declared with the WITH HOLD option. Which of the following statements is always true?
A、The cursor will remain open after a COMMIT.
B、All rows retrieved are locked until a COMMIT.
C、A COMMIT will not be allowed until the cursor is closed.
D、Locks obtained by the cursor will be kept after a COMMIT.
正确答案:
第17题,给定三个表:学生表S,课程表C和学生选课表SC,它们的结构别离如下:
S(S#,SN,SEX,AGE,DEPT)
C(C#,CN)
SC(S#,C#,GRADE)
其间:S#为学号,SN为名字,SEX为性别,AGE为年纪,DEPT为系别,C#为课程 号,CN为课程名,GRADE为分数。对表SC树立如下视图:CREATE VIEW S_GRADE(S#,C_NUM,AVG_GRADE)AS SELECT S#,COUNT(C#),AVG(GRADE)FROM SCGROUP BY S#;判别下面查询是不是答应履行,如答应,写出变换到根本表SC上的操作。SELECT S#,C_NUMFROM S_GRADEWHERE AVG_GRADE80
A、不答应查询。由于视图中运用了分组和聚合函数。
B、答应。对应的操作为:
SELECT S#,COUNT(C#)
FROM SC
WHERE AVG(GRADE)80
C、答应。对应的操作为:
SELECT S#,COUNT(C#)
FROM SC
GROUP BY S#
HAVING AVG(GRADE)80
D、答应。对应的操作为:
SELECT S#, COUNT(C#)
FROM SC
HAVING AVG(GRADE)80
正确答案:
第18题,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,B.name,COUNT(DISTINCT A.name) AS number_of_countries
FROM country A, staff B
WHERE B.id=A.person
GROUP BY B.id,B.name
HAVING COUNT(DISTINCT A.name):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
正确答案:
第22题,To prepare an embedded SQL program for use with a host-language compiler,
which of the following database components is required?
A、Binder
B、Precompiler
C、Stored Procedure Builder
D、Application Development Center
正确答案:
第23题,Given the EMPLOYEE table definition:
CREATE TABLE employee (
workdept CHAR(30),
salary INTEGER
)
Which of the following is a correct usage of parameter markers in a JDBC
program?
A、String sql =
"UPDATE employee SET salary=salary*?WHERE workdept=?";
statement stmt=con.createStatement(sql);
B、String sql =
"UPDATE employee SET salary=salary*?WHERE workdept=?";
statement stmt=con.createStatement(sql);
C、String sql =
"UPDATE employee SET salary=salary*?WHERE workdept=?";
statement stmt=con.createStatement(sql);
D、String sql =
"UPDATE employee SET salary=salary*?WHERE workdept=?";
statement stmt=con.createStatement(sql);
正确答案:
第25题,Given the expression:
WITH most_cities AS
(
SELECT b.id,b.name,a.cities
FROM country a, staff b
WHERE a.person = b.id AND
cities:threshold
)
SELECT * FROM most_cities
In which of the following does MOST_CITIES exist?
A、user tables
B、server memory
C、user table space
D、system catalog tables
正确答案:
奥鹏作业答案 联系QQ:3326650399 微信:cs80188
【熊猫奥鹏】-[吉林大学]吉大20年3月《数据库应用技术》作业考核试题
试卷总分:100 得分:100
第1题,How many rows can be retrieved using a single SELECT INTO statement?
A、Only one row
B、As many as are in the result
C、As many as are host variables used in the call
D、As many as host variable array structures can hold
正确答案:
第2题,在数据库中存储的是:()
A、数据
B、数据模型
C、数据以及数据之间的联系
D、信息
正确答案:
第3题,在句子CREATE VIEW EMP_VIEW2 (EMPNO, EMPNAME, DEPTNO, JOBTITLE, HIREDATE) AS SELECT ID, NAME, DEPT, JOB, HIREDATE FROM EMPLOYEE WHERE DEPT=10 WITH CHECK OPTION; 所界说的视图中,当运用INSERT句子时,若新增的行中DEPTNO数值不为10,则该即将被回绝刺进。
A、正确
B、过错
正确答案:
第4题,下面哪个东西能够协助用户对句子功能进行剖析?
A、可视化解说东西
B、功能监督器
C、指令行处理器
D、操控中间
正确答案:
第5题,界说根本表时,若要求某一列的值不能为空,则应在界说时运用啥保存字?但假如该列是主键,则可省写。
A、NULL
B、NOT NULL
C、DISTINCT
D、UNIQUE
正确答案:
第6题,Given an ODBC/CLI program with a single connection, two threads and the following actions which complete successfully:
Thread 1: INSERT INTO mytab VALUES (1)
Thread 2: INSERT INTO mytab VALUES (2)
Thread 1: COMMIT
Thread 2: INSERT INTO mytab VALUES (3)
Thread 1: ROLLBACK
Thread 2: COMMIT
How many records will be inserted and retained in the table MYTAB?
A、0
B、1
C、2
D、3
正确答案:
第7题,向根本表添加一个新列后,原有元组在该列上的值为何?
A、TRUE
B、FALSE
C、空值
D、不断定
正确答案:
第8题,据库系统和文件系统的首要差异是:
A、数据库系统杂乱,而文件系统简略。
B、文件系统不能处理数据冗余和数据独立性疑问,而数据库系统能够处理。
C、文件系统只能管理程序文件,而数据库系统可以管理各品种型的文件。
D、文件系统管理的数据量较少,而数据库系统能够管理巨大的数据量。
正确答案:
第9题,业务的原子性是指()
A、业务中包括的一切操作要么都做,要么都不做
B、业务一旦提交,对数据库的改动是持久性的
C、一个业务内部的操作及运用的数据对并发的其他业务是阻隔的
D、业务有必要是使数据库从一个共同性状况变到另一个共同性状况
正确答案:
第10题,The following commands are issued against a data source containing table user2.org:
CREATE ALIAS user1.org FOR sample.org
CREATE TABLE org.sample ( c CHAR(1))
CREATE ALIAS sample.org FOR user2.org
CREATE ALIAS user2.sample FOR sample.org
Given the user SAMPLE issues the following statement:
SELECT * FROM sample
For which of the following database objects will access be attempted?
A、user2.org
B、org.sample
C、sample.org
D、sample.sample
正确答案:
第11题,在SELECT句子的下列子句中,一般和HAVING子句一起运用的是以下哪项?
A、ORDER BY子句
B、WHERE子句
C、GROUP BY子句
D、均不需求
正确答案:
第12题,假如选用循环日志方法,辅助日志文件何时分配?
A、数据库树立的时分
B、数据库效劳器发动的时分
C、需求的时分
D、以上都不对
正确答案:
第13题,A cursor is declared with the WITH HOLD option. Which of the following statements is always true?
A、The cursor will remain open after a COMMIT.
B、All rows retrieved are locked until a COMMIT.
C、A COMMIT will not be allowed until the cursor is closed.
D、Locks obtained by the cursor will be kept after a COMMIT.
正确答案:
第14题,在客户端直连续接到DB2 UDB效劳器的环境中,效劳器端的认证类型为以下哪个时,在编目时指定的认证类型纷歧定要与效劳器端认证参数的值相匹配。
A、SERVER_ENCRYPT
B、DCE
C、DCE_SERVER_ENCRYPT
D、KERBEROS
正确答案:
第15题,发人员开发拜访后台AIX上的DB2的windows程序,需求在windows开发渠道上装置:
A、DB2运转时刻客户端
B、DB2管理客户端
C、DB2应用程序开发客户端
D、DB2瘦客户端
正确答案:
第16题,关于撑持小规划的部门级应用,这些应用不需求存取驻留在OS/400、OS/390等渠道上的远程数据库,则需求哪种等级的DB2 商品?
A、企业版
B、工作组版
C、企业拓展版
D、个人版
E、卫星版
F、微型版
正确答案:
第17题,给定三个表:学生表S,课程表C和学生选课表SC,它们的结构别离如下:
S(S#,SN,SEX,AGE,DEPT)
C(C#,CN)
SC(S#,C#,GRADE)
其间:S#为学号,SN为名字,SEX为性别,AGE为年纪,DEPT为系别,C#为课程 号,CN为课程名,GRADE为分数。对表SC树立如下视图:CREATE VIEW S_GRADE(S#,C_NUM,AVG_GRADE)AS SELECT S#,COUNT(C#),AVG(GRADE)FROM SCGROUP BY S#;判别下面查询是不是答应履行,如答应,写出变换到根本表SC上的操作。SELECT S#,C_NUMFROM S_GRADEWHERE AVG_GRADE80
A、不答应查询。由于视图中运用了分组和聚合函数。
B、答应。对应的操作为:
SELECT S#,COUNT(C#)
FROM SC
WHERE AVG(GRADE)80
C、答应。对应的操作为:
SELECT S#,COUNT(C#)
FROM SC
GROUP BY S#
HAVING AVG(GRADE)80
D、答应。对应的操作为:
SELECT S#, COUNT(C#)
FROM SC
HAVING AVG(GRADE)80
正确答案:
第18题,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,B.name,COUNT(DISTINCT A.name) AS number_of_countries
FROM country A, staff B
WHERE B.id=A.person
GROUP BY B.id,B.name
HAVING COUNT(DISTINCT A.name):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
正确答案:
第19题,假如想在数据导入的过程中创立表,大概
A、运用IXF文件格局进行LOAD
B、运用WSF文件格局进行LOAD
C、运用IXF文件格局进行IMPORT
D、运用WSF文件格局进行IMPORT
正确答案:
第20题,给出下面信息:
CREATE TABLE tab1 (c1 char(3) WITH DEFAULT NULL, c2 INTEGER);
INSERT INTO tab1(c2) VALUES (\'345\');
假如在指令行处理器(CLP)中履行以下句子,以下哪个成果是正确的?SELECT * FROM tab1;
A、C1C2 --- ----------- 0 record(s) selected.
B、C1C2 --- ----------- 123 345 1 record(s) selected.
C、C1C2 --- ----------- 345 1 record(s) selected.
D、C1C2 --- ----------- - 345 1 record(s) selected.
正确答案:
第21题,嵌入式SQL句子中引证同享变量时,有必要在变量名前加啥象征?
A、号
B、分号
C、句号
D、冒号
正确答案:
第22题,To prepare an embedded SQL program for use with a host-language compiler,
which of the following database components is required?
A、Binder
B、Precompiler
C、Stored Procedure Builder
D、Application Development Center
正确答案:
第23题,Given the EMPLOYEE table definition:
CREATE TABLE employee (
workdept CHAR(30),
salary INTEGER
)
Which of the following is a correct usage of parameter markers in a JDBC
program?
A、String sql =
"UPDATE employee SET salary=salary*?WHERE workdept=?";
statement stmt=con.createStatement(sql);
B、String sql =
"UPDATE employee SET salary=salary*?WHERE workdept=?";
statement stmt=con.createStatement(sql);
C、String sql =
"UPDATE employee SET salary=salary*?WHERE workdept=?";
statement stmt=con.createStatement(sql);
D、String sql =
"UPDATE employee SET salary=salary*?WHERE workdept=?";
statement stmt=con.createStatement(sql);
正确答案:
第24题,当FROM子句中呈现多个根本表或视图时,系统将履行啥操作?
A、并
B、等值联接
C、天然联接
D、笛卡儿积
正确答案:
第25题,Given the expression:
WITH most_cities AS
(
SELECT b.id,b.name,a.cities
FROM country a, staff b
WHERE a.person = b.id AND
cities:threshold
)
SELECT * FROM most_cities
In which of the following does MOST_CITIES exist?
A、user tables
B、server memory
C、user table space
D、system catalog tables
正确答案:
奥鹏作业答案 联系QQ:3326650399 微信:cs80188
专业辅导各院校在线、离线考核、形考、终极考核、统考、社会调查报告、毕业论文写作交流等!(非免费)
联系我们:QQ客服:3326650399 439328128 微信客服①:cs80188 微信客服②:cs80189
扫一扫添加我为好友 扫一扫添加我为好友