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

目录
相关文章
|
数据安全/隐私保护 关系型数据库 Oracle
OCP-052考试题库汇总(60)-CUUG内部解答版
Examine these facts about a database: The database default tablespace to EXAMPLE. DEFERRED_SEGMENT_CREATION is TRUE (原来为 FALSE,题目有错) Examine these co...
3730 0
OCP-052考试题库汇总(59)-CUUG内部解答版
In one of your databases: 1.USER1 and USER2 have no system privileges. 2.ROLE1 only has these privileges: ?CREATE SESSION ?CREATE TABLE ?CREATE VIEW ...
2827 0
|
Oracle 关系型数据库 数据库
OCP-052考试题库汇总(49)-CUUG内部解答版
Which two statements are true about the Automatic Diagnostic Repository (ADR) ? A)It only exists if DIAGNOSTIC_DEST is configured in the SPFILE.
963 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.
8259 0
OCP-052考试题库汇总(42)-CUUG内部解答版
You successfully executed these commands: connect scott/tiger@prod1; CREATE DATABASE LINK db_prod2 CONNECT TO scott IDENTIFIED BY tiger USING 'PROD2'...
794 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.
734 0
|
SQL 存储 Oracle
OCP-052考试题库汇总(37)-CUUG内部解答版
Examine these facts about objects in the SYSTEM schema: 1.EMP is a table. 2.EMP_PK is a primary key constraint on EMP.
854 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.
695 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。
601 0
|
Oracle 关系型数据库 数据库
OCP-052考试题库汇总(31)-CUUG内部解答版
which four are true about the tools used to administer Oracle database? A)the Data Pump utility can be used to load data from text files.
799 0