OCP-052考试题库汇总(3)-CUUG内部解答版

简介:   Each row in the TRANS_SUMMARY table contains details of one product.  Each row in the TRANS_MONTHLY table contains transaction details either for ...

  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);

目录
相关文章
|
数据库 存储
OCP-052考试题库汇总(48)-CUUG内部解答版
Which is true about the Automatic Diagnostic Repository (ADR) ? A) It is used only if the DIAGNOSTIC_DEST parameter is manually configured.
760 0
|
Oracle 关系型数据库 数据库管理
OCP-052考试题库汇总(47)-CUUG内部解答版
Which three are true about the Automatic Database Diagnostic Monitor (ADDM)? A)It improves database performance by automatically implementing Oracle ‘s best practices.
836 0
|
数据库管理
OCP-052考试题库汇总(46)-CUUG内部解答版
Examine this command: SQL> CREATE GLOBAL TEMPORARY TABLE report_work_area (startdate DATE, enddate DATE, class CHAR(20)) ON COMMIT PRESERVE ROWS; Whi...
781 0
|
SQL
OCP-052考试题库汇总(44)-CUUG内部解答版
Which two are true about external tables? A)They can be stored in an ASM Cluster File System(ACFS). B)They can always be updated using SQL.
8267 0
|
SQL 数据库 关系型数据库
OCP-052考试题库汇总(43)-CUUG内部解答版
Which is true about external tables? A)Segments are allocated for external tables. B)They may have indexes.
2146 0
|
数据库 关系型数据库 Oracle
OCP-052考试题库汇总(39)-CUUG内部解答版
Which three are true about auditing? A)Auditing is active only when the database is OPEN. B)Audit records are always stored in the database.
751 0
|
数据安全/隐私保护 关系型数据库 Oracle
OCP-052考试题库汇总(35)-CUUG内部解答版
Which two are true about Oracle Data Pump in Oracle Database 11g Release 2? A)If the directory used in the export operation has existing dump files, it overwrites them.
716 0
OCP-052考试题库汇总(34)-CUUG内部解答版
Where is an expdp operation tracked? A)dump files B)control file C)log files D)Automatic Diagnostic Repository(ADR) E)master table (MT) Answer: E 赵: 题译:哪里有一个 Exdp 操作跟踪? Master table 是一个临时 table,专门为 import pump 和 export pump 创建的,一旦完成就会自动被 drop。
614 0
|
Oracle 关系型数据库
OCP-052考试题库汇总(29)-CUUG内部解答版
When does an incremental checkpoint occur ? A)when an online redo log switch occurs. B)when DBWn writes dirty buffers as part of its normal processing.
1052 0
|
Oracle 关系型数据库
OCP-052考试题库汇总(30)-CUUG内部解答版
Which two are true about the Inventory directory? A)It is shared by all Oracle software installations on a single server.
673 0