Oracle 11g OCP认证052考试题库(3)-CUUG内部学员版
最新学讯:近期OCP认证正在报名中,因考试人员较多请尽快报名获取最近考试时间,报名费用请联系在线老师,甲骨文官方认证,报名从速!
我要咨询11g版本的OCP考试持续了好几年,一直比较稳定,直到2018年4月份左右,052考试不断的出现新的考题,虽然我们收集整理了不少,但新题还是难避免,这样出现一部分新题,我们收集一部分,持续了不短的时间。
对于这些052考试新题,不仅老师给出了答案,学员也积极的找资料、查文档,形成了一份内部综合版本,通过分数非常高,一起渡过这次052考试的难关。
-----------------------------------------------
052考试题-3(OCP考试题库讨论群:101-5267-481 验证:ocp)
Each row in the TRANS_SUMMARY table contains details of one product.
Each row in the TRANS_MONTHLY table contains transaction details either for new products or for updates to existing products.
There is a monthly requirement to:
1.Insert TRANS_MONTHLY rows for new products to the TRANS_SUMMARY table
2.Update the TRANS_SUMMARY table when a TRANS_MONTHLY row refers to an existing product.
Which two can be used to do this?
A)INSERT INTO .. SELECT FROM ..
B)a called procedure.
C)an Oracle loader type external table.
D)the MERGE command.
E)CREATE TABLE AS SELECT (CTAS)
Answer: BD
赵:
题译:
每月需要:
1 将 TRANS_MONTHLY 表中的新产品的行插入到 TRANS_SUMMARY 汇总表
2 对已有的产品进行更新
MERGE INTO T T1
USING (SELECT '1001' AS a,2 AS b FROM dual) T2
ON ( T1.a=T2.a)
WHEN MATCHED THEN
UPDATE SET T1.b = T2.b
WHEN NOT MATCHED THEN
INSERT (a,b) VALUES(T2.a,T2.b);