没有合适的资源?快使用搜索试试~ 我知道了~
首页2018 OCP 1z0-071 最新题库
2018 OCP 1z0-071 最新题库
2星 需积分: 10 41 下载量 178 浏览量
更新于2023-03-16
评论 1
收藏 4.27MB PDF 举报
2018 OCP 1z0-071 最新题库(培训机构)2018 OCP 1z0-071 最新题库(培训机构)
资源详情
资源评论
资源推荐
1z0-071.OCM之家.exam.161q
Number: 1z0-071
Passing Score: 800
Time Limit: 120 min
File Version: 2.0
1z0-071
Oracle Database 12c SQL
Version 2.0
Exam A
QUESTION 1
Evaluate the following SQL statement:
SQL> select cust_id, cust_last_name "Last name"
FROM customers
WHERE country_id = 10
UNION
SELECT cust_id CUST_NO, cust_last_name
FROM customers
WHERE country_id = 30
Identify three ORDER BY clauses either one of which can complete the query.
A.
ORDER BY "Last name"
B.
ORDER BY 2, cust_id
C.
ORDER BY CUST_NO
D.
ORDER BY 2, 1
E.
ORDER BY "CUST_NO"
Correct Answer: ABD
Section: (none)
Explanation
Explanation/Reference:
Explanation:
Using the ORDER BY Clause in Set Operations
-The ORDER BY clause can appear only once at the end of the compound query.
-Component queries cannot have individual ORDER BY clauses.
-The ORDER BY clause recognizes only the columns of the first SELECT query.
-By default, the first column of the first SELECT query is used to sort the output in an
ascending order.
QUESTION 2
Which three statements are true regarding the WHERE and HAVING clauses in a SQL statement? (Choose three.)
A. WHERE and HAVING clauses cannot be used together in a SQL statement.
B. The
HAVING
clause conditions can have aggregate functions.
C. The
HAVING
clause conditions can use aliases for the columns.
D. The WHERE clause is used to exclude rows before the grouping of data.
E. The HAVING clause is used to exclude one or more aggregated results after grouping data.
Correct Answer: ABD
Section: (none)
Explanation
Explanation/Reference:
QUESTION 3
Which statement is true regarding external tables?
A. The CREATE TABLE AS SELECT statement can be used to upload data into regular table in the database from an external table.
B. The data and metadata for an external table are stored outside the database.
C. The default REJECT LIMIT for external tables is UNLIMITED.
D. ORACLE_LOADER and ORACLE_DATAPUMP have exactly the same functionality when used with an external table.
Correct Answer: A
Section: (none)
Explanation
Explanation/Reference:
References:
https://docs.oracle.com/cd/B28359_01/server.111/b28310/tables013.htm
QUESTION 4
Which two statements are true about Data Manipulation Language (DML) statements?
A. An INSERT INTO...VALUES.. statement can add multiple rows per execution to a table.
B. An UPDATE... SET... statement can modify multiple rows based on multiple conditions on a table.
C. A DELETE FROM..... statement can remove rows based on only a single condition on a table.
D. An INSERT INTO... VALUES..... statement can add a single row based on multiple conditions on a table.
E. A DELETE FROM..... statement can remove multiple rows based on multiple conditions on a table.
F. An UPDATE....SET.... statement can modify multiple rows based on only a single condition on a table.
Correct Answer: BE
Section: (none)
Explanation
Explanation/Reference:
References:
http://www.techonthenet.com/sql/and_or.php
QUESTION 5
Which two statements are true regarding roles? (Choose two.)
A. A role can be granted to itself.
B. A role can be granted to PUBLIC.
C. A user can be granted only one role at any point of time.
D. The REVOKE command can be used to remove privileges but not roles from other users.
E. Roles are named groups of related privileges that can be granted to users or other roles.
Correct Answer: BE
Section: (none)
Explanation
Explanation/Reference:
References:
http://docs.oracle.com/cd/E25054_01/network.1111/e16543/authorization.htm#autoId28
QUESTION 6
Which two statements are true regarding constraints? (Choose two)
A. A constraint is enforced only for an INSERT operation on a table.
B. A foreign key cannot contain NULL values.
C. The column with a UNIQUE constraint can store NULLS.
D. You can have more than one column in a table as part of a primary key.
Correct Answer: CD
Section: (none)
Explanation
Explanation/Reference:
QUESTION 7
Evaluate the following statement.
INSERT ALL
WHEN order_total < 10000 THEN
INTO small_orders
WHEN order_total > 10000 AND order_total < 20000 THEN
INTO medium_orders
WHEN order_total > 200000 AND order_total < 20000 THEN
INTO large_orders
SELECT order_id, order_total, customer_id
FROM orders;
Which statement is true regarding the evaluation of rows returned by the subquery in the INSERT statement?
A. They are evaluated by all the three WHEN clauses regardless of the results of the evaluation of any other WHEN clause.
B. They are evaluated by the first WHEN clause. If the condition is true, then the row would be evaluated by the subsequent WHEN clauses.
C. They are evaluated by the first WHEN clause. If the condition is false, then the row would be evaluated by the subsequent WHEN clauses.
D. The insert statement would give an error because the ELSE clause is not present for support in case none of WHEN clauses are true.
Correct Answer: A
Section: (none)
Explanation
Explanation/Reference:
References:
http://psoug.org/definition/WHEN.htm
QUESTION 8
Examine the structure of the MEMBERS table:
Name Null? Type
---------------- ----------------- ---------------------------
MEMBER_ID NOT NULL VARCHAR2 (6)
FIRST_NAME VARCHAR2 (50)
LAST_NAME NOT NULL VARCHAR2 (50)
ADDRESS VARCHAR2 (50)
CITY VARCHAR2 (25)
剩余164页未读,继续阅读
qq_41927837
- 粉丝: 0
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- c++校园超市商品信息管理系统课程设计说明书(含源代码) (2).pdf
- 建筑供配电系统相关课件.pptx
- 企业管理规章制度及管理模式.doc
- vb打开摄像头.doc
- 云计算-可信计算中认证协议改进方案.pdf
- [详细完整版]单片机编程4.ppt
- c语言常用算法.pdf
- c++经典程序代码大全.pdf
- 单片机数字时钟资料.doc
- 11项目管理前沿1.0.pptx
- 基于ssm的“魅力”繁峙宣传网站的设计与实现论文.doc
- 智慧交通综合解决方案.pptx
- 建筑防潮设计-PowerPointPresentati.pptx
- SPC统计过程控制程序.pptx
- SPC统计方法基础知识.pptx
- MW全能培训汽轮机调节保安系统PPT教学课件.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论2