第8题,下列SQL句子中,可以完成"回收U4对学生表(STUD)中学号(XH)的修正权"这一功用的是以下哪项?
A、REVOKE UPDATE(XH) ON TABLE FROM U4
B、REVOKE UPDATE(XH) ON TABLE FROM PUBLIC
C、REVOKE UPDATE(XH) ON STUD FROM U4
D、REVOKE UPDATE(XH) ON STUD FROM PUBLIC
正确答案:
答案来历:熊猫奥鹏(www.188open.com),Under which of the following situations must dynamic SQL be used?
A、When temporary table references exist at compile time
B、When the host variables\' values are unknown at compile time
C、When the columns in the SELECT clause are unknown at compile time
D、When the number of rows being returned are unknown at compile time
正确答案:
第11题,给定三个表:学生表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
正确答案:
第14题,Which of the following is a benefit of user-defined functions?
A、Improves application concurrency
B、Improves blocking of result sets
C、Simplifies application maintenance
D、Reduces memory requirements on the server
正确答案:
第19题,Given the application code:
EXEC SQL DECLARE cur CURSOR WITH HOLD FOR SELECT c1 FROM t1
EXEC SQL OPEN cur
EXEC SQL FETCH cur INTO :hv /* Statement 1 */
EXEC SQL COMMIT /* Statement 2 */
EXEC SQL FETCH cur INTO :hv /* Statement 3 */
EXEC SQL ROLLBACK /* Statement 4 */
EXEC SQL CLOSE cur /* Statement 5 */
If the table T1 has no rows in it, which statement will cause the cursor "cur" to be
closed first?
A、Statement 1
B、Statement 2
C、Statement 3
D、Statement 4
正确答案:
答案来历:熊猫奥鹏(www.188open.com),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
正确答案:
第23题,Given the following table:
CREATE TABLE employee
(name CHAR(10), salary DEC NOT NULL WITH DEFAULT)
INSERT INTO employee (name, salary) VALUES (\'SMITH\', 30000)
INSERT INTO employee (name) VALUES (\'JONES\')
INSERT INTO employee (name, salary) VALUES (\'ALI\', 35000)
Which of the following statements will retrieve more than one row?
A、SELECT salary FROM employee WHERE salary IN (SELECT (salary/(SELECT
SUM(salary) FROM employee)) FROM employee)
B、SELECT COALESCE(AVG(salary)) FROM employee
C、SELECT SUM(salary)/COUNT(*) FROM employee
D、SELECT salary/(SELECT SUM(salary) FROM employee) FROM employee
正确答案:
第24题,假如一个用户USER1被颁发了表TAB上的CONTROL特权,假如需求约束该用户对表的存取,应运用以下哪条指令?
A、REVOKE ALL ON TAB TO USER1
B、REVOKE ALL ON TAB FROM USER1
C、REVOKE CONTROL ON TAB TO USER1
D、REVOKE CONTROL ON TAB FROM USER1
正确答案:
答案来历:熊猫奥鹏(www.188open.com),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
正确答案:
作业答案 联系QQ:3326650399 微信:cs80188
答案来历:熊猫奥鹏(www.188open.com)-[吉林大学]吉大20春学期《数据库应用技术》在线作业二
试卷总分:100 得分:100
第1题,给出下面信息:
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.
正确答案:
第2题,关系形式中各级形式之间的关系为()
A、3NF包括 2NF包括 1NF
B、3NF包括 1NF包括 2NF
C、1NF 包括2NF包括 3NF
D、2NF包括 1NF 包括3NF
正确答案:
第3题,假如想在数据导入的过程中创立表,大概
A、运用IXF文件格局进行LOAD
B、运用WSF文件格局进行LOAD
C、运用IXF文件格局进行IMPORT
D、运用WSF文件格局进行IMPORT
正确答案:
第4题,在数据库中存储的是:()
A、数据
B、数据模型
C、数据以及数据之间的联系
D、信息
正确答案:
答案来历:熊猫奥鹏(www.188open.com),假如开发人员在AIX操作系统上开发拜访后台AS400上的DB2数据库,则需求在AIX开发环境中装置:()
A、DB2个人开发版(PDE)
B、DB2通用开发版(UDE)
正确答案:
第6题,界说根本表时,若要求某一列的值不能为空,则应在界说时运用啥保存字?但假如该列是主键,则可省写。
A、NULL
B、NOT NULL
C、DISTINCT
D、UNIQUE
正确答案:
第7题,数据操作语言的根本功用中不包含()
A、向数据库中刺进数据
B、描绘数据库的拜访操控
C、修正数据库中的数据
D、删去数据库中的数据
正确答案:
第8题,下列SQL句子中,可以完成"回收U4对学生表(STUD)中学号(XH)的修正权"这一功用的是以下哪项?
A、REVOKE UPDATE(XH) ON TABLE FROM U4
B、REVOKE UPDATE(XH) ON TABLE FROM PUBLIC
C、REVOKE UPDATE(XH) ON STUD FROM U4
D、REVOKE UPDATE(XH) ON STUD FROM PUBLIC
正确答案:
第9题,要对应用程序预编译并生成绑定文件,需求啥特权?
A、数据库上的CONNECT特权
B、数据库上的BINDADD特权
C、程序包上的BIND特权
D、程序包上的CONTROL特权
正确答案:
答案来历:熊猫奥鹏(www.188open.com),Under which of the following situations must dynamic SQL be used?
A、When temporary table references exist at compile time
B、When the host variables\' values are unknown at compile time
C、When the columns in the SELECT clause are unknown at compile time
D、When the number of rows being returned are unknown at compile time
正确答案:
第11题,给定三个表:学生表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
正确答案:
答案来历:熊猫奥鹏(www.188open.com),当数据库遭到损坏时,为了能敏捷康复,在进行业务处理过程中将对数据库更新的悉数内容写入以下哪项?
A、副这篇文章件
B、日志文件
C、检查点文件
D、死锁文件
正确答案:
第13题,关系标准化中的删去操作反常是指()
A、不应删去的数据被删去
B、不应刺进的数据被刺进
C、大概删去的数据未被删去
D、大概刺进的数据未被刺进
正确答案:
第14题,Which of the following is a benefit of user-defined functions?
A、Improves application concurrency
B、Improves blocking of result sets
C、Simplifies application maintenance
D、Reduces memory requirements on the server
正确答案:
答案来历:熊猫奥鹏(www.188open.com),下面哪个东西能够协助用户对句子功能进行剖析?
A、可视化解说东西
B、功能监督器
C、指令行处理器
D、操控中间
正确答案:
第16题,履行下面两条SQL句子后:
CREATE TABLE t1( c1 char(10) NOT NULL PRIMARY KEY, c2 int, c3 char(10), c4 char(10) NOT NULL,CONSTRAINT c4 UNIQUE (c1,c4) ) //自动创立索引
CREATE INDEX Index1 ON t1 (c2 ASC)
表t1上有几个索引?
A、0
B、1
C、2
D、3
E、4
正确答案:
第17题,下述关于数据库系统的正确叙说是()
A、数据库中只存在数据项之间的联系
B、数据库的数据项之间和记载之间都存在联系
C、数据库的数据项之间无联系,记载之间存在联系
D、数据库的数据项之间和记载之间都不存在联系
正确答案:
第18题,发人员开发拜访后台AIX上的DB2的windows程序,需求在windows开发渠道上装置:
A、DB2运转时刻客户端
B、DB2管理客户端
C、DB2应用程序开发客户端
D、DB2瘦客户端
正确答案:
第19题,Given the application code:
EXEC SQL DECLARE cur CURSOR WITH HOLD FOR SELECT c1 FROM t1
EXEC SQL OPEN cur
EXEC SQL FETCH cur INTO :hv /* Statement 1 */
EXEC SQL COMMIT /* Statement 2 */
EXEC SQL FETCH cur INTO :hv /* Statement 3 */
EXEC SQL ROLLBACK /* Statement 4 */
EXEC SQL CLOSE cur /* Statement 5 */
If the table T1 has no rows in it, which statement will cause the cursor "cur" to be
closed first?
A、Statement 1
B、Statement 2
C、Statement 3
D、Statement 4
正确答案:
答案来历:熊猫奥鹏(www.188open.com),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
正确答案:
第21题,数据库系统的独立性是指():
A、不会由于数据的改变而影呼应用程序
B、不会由于系统数据存储结构与数据逻辑结构的改变而影呼应用程序
C、不会由于存储战略的改变而影响存储结构
D、不会由于某些存储结构的改变而影响其它的存储结构
正确答案:
第22题,下面哪个东西能够保留终端用户需求存取的元数据?
A、Query Management Facility
B、DB2 Query Patroller
C、DB2存储过程构建器
D、信息目录
正确答案:
第23题,Given the following table:
CREATE TABLE employee
(name CHAR(10), salary DEC NOT NULL WITH DEFAULT)
INSERT INTO employee (name, salary) VALUES (\'SMITH\', 30000)
INSERT INTO employee (name) VALUES (\'JONES\')
INSERT INTO employee (name, salary) VALUES (\'ALI\', 35000)
Which of the following statements will retrieve more than one row?
A、SELECT salary FROM employee WHERE salary IN (SELECT (salary/(SELECT
SUM(salary) FROM employee)) FROM employee)
B、SELECT COALESCE(AVG(salary)) FROM employee
C、SELECT SUM(salary)/COUNT(*) FROM employee
D、SELECT salary/(SELECT SUM(salary) FROM employee) FROM employee
正确答案:
第24题,假如一个用户USER1被颁发了表TAB上的CONTROL特权,假如需求约束该用户对表的存取,应运用以下哪条指令?
A、REVOKE ALL ON TAB TO USER1
B、REVOKE ALL ON TAB FROM USER1
C、REVOKE CONTROL ON TAB TO USER1
D、REVOKE CONTROL ON TAB FROM USER1
正确答案:
答案来历:熊猫奥鹏(www.188open.com),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
正确答案:
作业答案 联系QQ:3326650399 微信:cs80188
专业辅导各院校在线、离线考核、形考、终极考核、统考、社会调查报告、毕业论文写作交流等!(非免费)
联系我们:QQ客服:3326650399 439328128 微信客服①:cs80188 微信客服②:cs80189
扫一扫添加我为好友 扫一扫添加我为好友