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...
3750 0
OCP-052考试题库汇总(58)-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 ...
791 0
OCP-052考试题库汇总(57)-CUUG内部解答版
Examine these facts about a databases: 1.USERS is the database default tablespace. 2.USER1,USER2,and USER3 have the CREATE SESSION privilege 3.
763 0
OCP-052考试题库汇总(55)-CUUG内部解答版
Examine these facts about a database: 1.USER is the database default tablespace. 2.USER1, USER2, and USER3 have the CREATE SESSION privilege.
3073 0
|
数据库 存储
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.
765 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...
789 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.
8272 0
|
SQL 数据库 关系型数据库
OCP-052考试题库汇总(43)-CUUG内部解答版
Which is true about external tables? A)Segments are allocated for external tables. B)They may have indexes.
2154 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.
759 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.
870 0