KillTest 质量更高 服务更好 学习资料 半年免费更新服务

Similar documents
KillTest 质量更高 服务更好 学习资料 半年免费更新服务

KillTest 质量更高 服务更好 学习资料 半年免费更新服务

Oracle Database 10g: SQL (OCE) 的第一堂課

Microsoft PowerPoint - 05-SQL3-advanced.ppt

SQL: Interactive Queries (2)

目錄 C ontents Chapter MTA Chapter Chapter

DB2 (join) SQL DB2 11 SQL DB2 SQL 9.1 DB2 DB2 ( ) SQL ( ) DB2 SQL DB2 DB2 SQL DB2 DB2 SQL DB2 ( DB2 ) DB2 DB2 DB2 SQL DB2 (1) SQL (2) S

KillTest 质量更高 服务更好 学习资料 半年免费更新服务

Microsoft Word 年9月二级VF真卷.doc

ebook46-23

untitled

untitled

11.2 overview

1-1 database columnrow record field 不 DBMS Access Paradox SQL Server Linux MySQL Oracle IBM Informix IBM DB2 Sybase 1-2

學 科 100% ( 為 單 複 選 題, 每 題 2.5 分, 共 100 分 ) 1. 請 參 閱 附 圖 作 答 : (A) 選 項 A (B) 選 項 B (C) 選 項 C (D) 選 項 D Ans:D 2. 下 列 對 於 資 料 庫 正 規 化 (Normalization) 的 敘

5-1淡江大學學則950602

第1套

Oracle9i 的查询优化

教 学 目 标 描 述 主 要 数 据 库 对 象 创 建 表 描 述 列 定 义 时 可 用 的 数 据 类 型 改 变 表 的 定 义 删 除 改 名 和 截 断 表 描 述 每 个 DML 语 句 插 入 行 到 表 中 更 新 表 中 的 行 从 表 中 删 除 行 描 述 约 束 创 建

入學考試網上報名指南

目錄

Important Notice SUNPLUS TECHNOLOGY CO. reserves the right to change this documentation without prior notice. Information provided by SUNPLUS TECHNOLO

Preface This guide is intended to standardize the use of the WeChat brand and ensure the brand's integrity and consistency. The guide applies to all d

Microsoft Word - TIP006SCH Uni-edit Writing Tip - Presentperfecttenseandpasttenseinyourintroduction readytopublish

使用SQL Developer

PowerPoint Presentation

國立中山大學學位論文典藏

KillTest 质量更高 服务更好 学习资料 半年免费更新服务

1.ai

ebook 96-16


软件测试(TA07)第一学期考试

基于UML建模的管理管理信息系统项目案例导航——VB篇

untitled

数 据 库 系 统 基 础 2/54 第 6 章 数 据 库 管 理 与 维 护

幻灯片 1

Microsoft Word - Final Exam Review Packet.docx

Microsoft Word - HSK使用手册.doc

精 品 库 我 们 的 都 是 精 品 _www.jingpinwenku.com (8) 数 据 库 数 据 库 系 统 和 数 据 库 管 理 系 统 之 问 的 关 系 是 ( ) A) 数 据 库 包 括 数 据 库 系 统 和 数 据 库 管 理 系 统 B) 数 据 库 系 统 包 括

川 外 250 人, 上 外 222 人, 广 外 209 人, 西 外 195 人, 北 外 168 人, 中 南 大 学 135 人, 西 南 大 学 120 人, 湖 南 大 学 115 人, 天 外 110 人, 大 连 外 国 语 学 院 110 人, 上 海 外 事 学 院 110 人,

untitled

Microsoft Word - template.doc

30 ml polystyrene 4 mm ph 0.1 mg blender M -cm D. pulex D. magna 20 L 2 20

南華大學數位論文

目 錄 壹 青 輔 會 結 案 附 件 貳 活 動 計 劃 書 參 執 行 內 容 一 教 學 內 容 二 與 當 地 教 師 教 學 交 流 三 服 務 執 行 進 度 肆 執 行 成 效 一 教 學 課 程 二 與 當 地 教 師 教 學 交 流 三 服 務 滿 意 度 調 查 伍 服 務 檢

Untitiled

4. 每 组 学 生 将 写 有 习 语 和 含 义 的 两 组 卡 片 分 别 洗 牌, 将 顺 序 打 乱, 然 后 将 两 组 卡 片 反 面 朝 上 置 于 课 桌 上 5. 学 生 依 次 从 两 组 卡 片 中 各 抽 取 一 张, 展 示 给 小 组 成 员, 并 大 声 朗 读 卡

Microsoft Word - (web)_F.1_Notes_&_Application_Form(Chi)(non-SPCCPS)_16-17.doc

89???????q?l?????T??

States and capital package

Windows XP

BC04 Module_antenna__ doc

Microsoft PowerPoint - ch6 [相容模式]

一年級上學期(2001/2002)測驗時間表及範圍 /10/2001

國家圖書館典藏電子全文

Knowledge and its Place in Nature by Hilary Kornblith

國 立 政 治 大 學 教 育 學 系 2016 新 生 入 學 手 冊 目 錄 表 11 國 立 政 治 大 學 教 育 學 系 博 士 班 資 格 考 試 抵 免 申 請 表 論 文 題 目 申 報 暨 指 導 教 授 表 12 國 立 政 治 大 學 碩 博 士 班 論

Microsoft Word doc

C o n t e n t s Acceptance Allow Love Apologize Archangel Metatron Archangel Michael Ask for

~ ~

國立中山大學學位論文典藏.PDF

KillTest 质量更高 服务更好 学习资料 半年免费更新服务

6-1 Table Column Data Type Row Record 1. DBMS 2. DBMS MySQL Microsoft Access SQL Server Oracle 3. ODBC SQL 1. Structured Query Language 2. IBM

天 主 教 輔 仁 大 學 社 會 學 系 學 士 論 文 小 別 勝 新 婚? 久 別 要 離 婚? 影 響 遠 距 家 庭 婚 姻 感 情 因 素 之 探 討 Separate marital relations are getting better or getting worse? -Exp

考試學刊第10期-內文.indd

Fun Time (1) What happens in memory? 1 i n t i ; 2 s h o r t j ; 3 double k ; 4 char c = a ; 5 i = 3; j = 2; 6 k = i j ; H.-T. Lin (NTU CSIE) Referenc

( ) ( ) ( ) ( )

東莞工商總會劉百樂中學

Microsoft Word - 序+目錄.doc

Microsoft Word - CMRO ??????????????? Luxiaoyan

Microsoft Word - 105碩博甄簡章.doc

(Microsoft Word - 11-\261i\256m\253i.doc)

Chapter 9: Objects and Classes

Progress Report of BESIII Slow Control Software Development


2. 熟 读 题 目 3. 积 累 核 心 句 式 4. 列 出 每 道 题 的 提 纲 5. 构 造 各 部 分 的 论 证 模 板 6. 全 文 练 习 10 到 20 篇 文 章 如 何 分 析 Argument 题 目 1. Argument 题 目 的 文 字 结 构 1) 题 目 的 出

USPTO Academic research Corporate needs Global/International Inventors Libraries News Media/Publication Patent Attorney or Agent USPTO e (ebusiness Ce

<4D F736F F D C4EAC0EDB9A4C0E04142BCB6D4C4B6C1C5D0B6CFC0FDCCE2BEABD1A15F325F2E646F63>

林教授2.PDF

(Microsoft Word - \262\263\250\245\260\ _combined version-2)

20-25%,


ENGG1410-F Tutorial 6

Questions and Answers

Microsoft PowerPoint - L17_Inheritance_v4.pptx

SQL 书写规范

Chinese oil import policies and reforms 随 着 经 济 的 发 展, 目 前 中 国 石 油 消 费 总 量 已 经 跃 居 世 界 第 二 作 为 一 个 负 责 任 的 大 国, 中 国 正 在 积 极 推 进 能 源 进 口 多 元 化, 鼓 励 替 代

Microsoft Word - 第四組心得.doc

< F5FB77CB6BCBD672028B0B6A46AABE4B751A874A643295F5FB8D5C5AA28A668ADB6292E706466>

Microsoft PowerPoint - Lecture7II.ppt

LH_Series_Rev2014.pdf

团 市 委 首 笔 爱 心 捐 款 及 物 资 已 送 至 芦 山 地 震 灾 区 : 近 日, 团 市 委 从 省 青 少 年 发 展 基 会 获 悉, 团 市 委 为 地 震 灾 区 募 集 的 首 笔 爱 心 捐 款 和 捐 赠 物 资 已 送 至 芦 山 地 震 灾 区 4 月 20 日,

從篤加有二「區」談當代平埔文化復振現相

IBM Rational ClearQuest Client for Eclipse 1/ IBM Rational ClearQuest Client for Ecl

ch_code_infoaccess

Microsoft PowerPoint - NCBA_Cattlemens_College_Darrh_B

诚 实 守 信 公 平 交 易 好 的 伦 理 为 经 营 之 道 我 们 的 价 值 观 我 们 的 日 常 工 作 让 客 户 和 消 费 者 展 露 微 笑 我 们 关 注 员 工 产 品 和 业 务 的 不 断 改 善 和 进 步 我 们 珍 视 我 能 做 到 的 态 度 和 精 神, 尝

IBM 全 球 企 业 咨 询 服 务 部 中 国 五 矿 筑 起 人 力 资 源 信 息 大 厦 2 回 顾 篇 慎 选 巧 选 软 件 平 台 由 于 五 矿 集 团 下 属 的 很 多 公 司 是 最 近 几 年 才 加 盟 的 新 成 员 企 业, 这 些 公 司 所 应 用 的 人 力 资

Lorem ipsum dolor sit amet, consectetuer adipiscing elit

Transcription:

KillTest 质量更高 服务更好 学习资料 http://www.killtest.cn 半年免费更新服务

Exam : 1Z0-007 Title : Introduction to Oracle9i: SQL Version : DEMO 1 / 10

1. What does the FORCE option for creating a view do? A.creates a view with constraints B.creates a view even if the underlying parent table has constraints C.creates a view in another schema even if you don't have privileges D.creates a view regardless of whether or not the base tables exist 2. What are two reasons to create synonyms? (Choose two.) A.You have too many tables. B.Your tables are too long. C.Your tables have difficult names. D.You want to work on your own tables. E.You want to use another schema's tables. F.You have too many columns in your tables. Answer: CE 3. The STUDENT_GRADES table has these columns: STUDENT_ID NUMBER(12) SEMESTER_END DATE GPA NUMBER(4,3) The registrar requested a report listing the students' grade point averages (GPA) sorted from highest grade point average to lowest. Which statement produces a report that displays the student ID and GPA in the sorted order requested by the registrar? A.SELECT student_id, gpa ORDER BY gpa ASC; B.SELECT student_id, gpa SORT ORDER BY gpa ASC; C.SELECT student_id, gpa SORT ORDER BY gpa; D.SELECT student_id, gpa ORDER BY gpa; 2 / 10

E.SELECT student_id, gpa SORT ORDER BY gpa DESC; F.SELECT student_id, gpa ORDER BY gpa DESC; Answer: F 4. In which three cases would you use the USING clause? (Choose three.) A.You want to create a nonequijoin. B.The tables to be joined have multiple NULL columns. C.The tables to be joined have columns of the same name and different data types. D.The tables to be joined have columns with the same name and compatible data types. E.You want to use a NATURAL join, but you want to restrict the number of columns in the join condition. Answer: CDE 5. The CUSTOMERS table has these columns: CUSTOMER_ID NUMBER(4) NOT NULL CUSTOMER_NAME VARCHAR2(100) NOT NULL STREET_ADDRESS VARCHAR2(150) CITY_ADDRESS VARCHAR2(50) STATE_ADDRESS VARCHAR2(50) PROVINCE_ADDRESS VARCHAR2(50) COUNTRY_ADDRESS VARCHAR2(50) POSTAL_CODE VARCHAR2(12) CUSTOMER_PHONE VARCHAR2(20) The CUSTOMER_ID column is the primary key for the table. You need to determine how dispersed your customer base is. Which expression finds the number of different countries represented in the CUSTOMERS table? A.COUNT(UPPER(country_address)) B.COUNT(DIFF(UPPER(country_address))) C.COUNT(UNIQUE(UPPER(country_address))) D.COUNT DISTINCT UPPER(country_address) E.COUNT(DISTINCT (UPPER(country_address))) Answer: E 6. Click the Exhibit button and examine the data in the EMPLOYEES table. 3 / 10

Which three subqueries work? (Choose three.) A.SELECT * where salary > (SELECT MIN(salary) GROUP BY department_id); B.SELECT * WHERE salary = (SELECT AVG(salary) GROUP BY department_id); C.SELECT distinct department_id WHERE salary > ANY (SELECT AVG(salary) GROUP BY department_id); D.SELECT department_id WHERE salary > ALL (SELECT AVG(salary) GROUP BY department_id); E.SELECT last_name WHERE salary > ANY (SELECT MAX(salary) GROUP BY department_id); F.SELECT department_id 4 / 10

WHERE salary > ALL (SELECT AVG(salary) GROUP BY AVG(SALARY)); Answer: CDE 7. A SELECT statement can be used to perform these three functions: 1. Choose rows from a table. 2. Choose columns from a table. 3. Bring together data that is stored in different tables by creating a link between them. Which set of keywords describes these capabilities? A.difference, projection, join B.selection, projection, join C.selection, intersection, join D.intersection, projection, join E.difference, projection, product Answer: B 8. Evaluate this SQL statement: SELECT e.employee_id,e.last_name,e.department_id, d.department_name FROM EMPLOYEES e, DEPARTMENTS d WHERE e.department_id = d.department_id; In the statement, which capabilities of a SELECT statement are performed? A.selection, projection, join B.difference, projection, join C.selection, intersection, join D.intersection, projection, join E.difference, projection, product Answer: A 9. Evaluate this SQL statement: SELECT e.employee_id, (.15* e.salary) + (.5 * e.commission_pct) + (s.sales_amount * (.35 * e.bonus)) AS CALC_VALUE e, sales s WHERE e.employee_id = s.emp_id; What will happen if you remove all the parentheses from the calculation? A.The value displayed in the CALC_VALUE column will be lower. B.The value displayed in the CALC_VALUE column will be higher. 5 / 10

C.There will be no difference in the value displayed in the CALC_VALUE column. D.An error will be reported. Answer: C 10. Which SQL statement generates the alias Annual Salary for the calculated column SALARY*12? A.SELECT ename, salary*12 'Annual Salary' ; B.SELECT ename, salary*12 "Annual Salary" ; C.SELECT ename, salary*12 AS Annual Salary ; D.SELECT ename, salary*12 AS INITCAP("ANNUAL SALARY") Answer: B 11. Evaluate this SQL statement: SELECT ename, sal, 12*sal+100 FROM emp; The SAL column stores the monthly salary of the employee. Which change must be made to the above syntax to calculate the annual compensation as "monthly salary plus a monthly bonus of $100, multiplied by 12"? A.No change is required to achieve the desired results. B.SELECT ename, sal, 12*(sal+100) FROM emp; C.SELECT ename, sal, (12*sal)+100 FROM emp; D.SELECT ename, sal+100,*12 FROM emp; Answer: B 12. The CUSTOMERS table has these columns: CUSTOMER_ID NUMBER(4) NOT NULL CUSTOMER_NAME VARCHAR2(100) NOT NULL CUSTOMER_ADDRESS VARCHAR2(150) CUSTOMER_PHONE VARCHAR2(20) You need to produce output that states "Dear Customer customer_name, ". The customer_name data values come from the CUSTOMER_NAME column in the CUSTOMERS table. 6 / 10

Which statement produces this output? A.SELECT dear customer, customer_name, B.SELECT "Dear Customer", customer_name ',' FROM customers; C.SELECT 'Dear Customer ' customer_name ',' FROM customers; D.SELECT 'Dear Customer ' customer_name ',' FROM customers; E.SELECT "Dear Customer " customer_name "," FROM customers; F.SELECT 'Dear Customer ' customer_name ',' FROM customers; 13. Which two are attributes of isql*plus? (Choose two.) A.iSQL*Plus commands cannot be abbreviated. B.iSQL*Plus commands are accessed from a browser. C.iSQL*Plus commands are used to manipulate data in tables. D.iSQL*Plus commands manipulate table definitions in the database. E.iSQL*Plus is the Oracle proprietary interface for executing SQL statements. Answer: BE 14. Which is an isql*plus command? A.INSERT B.UPDATE C.SELECT D.DESCRIBE E.DELETE F.RENAME 15. Which are isql*plus commands? (Choose all that apply.) A.INSERT B.UPDATE C.SELECT D.DESCRIBE E.DELETE 7 / 10

F.RENAME 16. Which two statements are true about constraints? (Choose two.) A.The UNIQUE constraint does not permit a null value for the column. B.A UNIQUE index gets created for columns with PRIMARY KEY and UNIQUE constraints. C.The PRIMARY KEY and FOREIGN KEY constraints create a UNIQUE index. D.The NOT NULL constraint ensures that null values are not permitted for the column. Answer: BD 17. Which three statements correctly describe the functions and use of constraints? (Choose three.) A.Constraints provide data independence. B.Constraints make complex queries easy. C.Constraints enforce rules at the view level. D.Constraints enforce rules at the table level. E.Constraints prevent the deletion of a table if there are dependencies. F.Constraints prevent the deletion of an index if there are dependencies. Answer: CDE 18. Which SQL statement defines a FOREIGN KEY constraint on the DEPTNO column of the EMP table? A.CREATE TABLE EMP (empno NUMBER(4), ename VARCHAR2(35), deptno NUMBER(7,2) NOT NULL, CONSTRAINT emp_deptno_fk FOREIGN KEY deptno REFERENCES dept deptno); B.CREATE TABLE EMP (empno NUMBER(4), ename VARCHAR2(35), deptno NUMBER(7,2) CONSTRAINT emp_deptno_fk REFERENCES dept (deptno)); C.CREATE TABLE EMP (empno NUMBER(4), ename VARCHAR2(35), deptno NUMBER(7,2) NOT NULL, CONSTRAINT emp_deptno_fk REFERENCES dept (deptno) FOREIGN KEY (deptno)); 8 / 10

D.CREATE TABLE EMP (empno NUMBER(4), ename VARCHAR2(35), deptno NUMBER(7,2) FOREIGN KEY CONSTRAINT emp_deptno_fk REFERENCES dept (deptno)); Answer: B 19. Which view should a user query to display the columns associated with the constraints on a table owned by the user? A.USER_CONSTRAINTS B.USER_OBJECTS C.ALL_CONSTRAINTS D.USER_CONS_COLUMNS E.USER_COLUMNS 20. You need to design a student registration database that contains several tables storing academic information. The STUDENTS table stores information about a student. The STUDENT_GRADES table stores information about the student's grades. Both of the tables have a column named STUDENT_ID. The STUDENT_ID column in the STUDENTS table is a primary key. You need to create a foreign key on the STUDENT_ID column of the STUDENT_GRADES table that points to the STUDENT_ID column of the STUDENTS table. Which statement creates the foreign key? A.CREATE TABLE student_grades (student_id NUMBER(12), semester_end DATE, gpa NUMBER(4,3), CONSTRAINT student_id_fk REFERENCES (student_id) FOREIGN KEY students(student_id)); B.CREATE TABLE student_grades (student_id NUMBER(12), semester_end DATE, gpa NUMBER(4,3), student_id_fk FOREIGN KEY (student_id) REFERENCES students(student_id)); C.CREATE TABLE student_grades 9 / 10

(student_id NUMBER(12), semester_end DATE, gpa NUMBER(4,3), CONSTRAINT FOREIGN KEY (student_id) REFERENCES students(student_id)); D.CREATE TABLE student_grades (student_id NUMBER(12), semester_end DATE, gpa NUMBER(4,3), CONSTRAINT student_id_fk FOREIGN KEY (student_id) REFERENCES students(student_id)); 10 / 10