nerdexam
Oracle

1Z0-067 · Question #35

Evaluate these statements: CREATE TABLE purchase_orders (po_idNUMBER(4), po_dateTIMESTAMP, supplier_idNUM8ER(6), po_totalNUMBER(8,2), CONSTRAINT order_pk PRIMARY KEY(po_id))…

The correct answer is B. The purchase_orders and purchase_order_items tables are created with four partition each. C. purchase_order_items table partitions exist in the same tablespaces as the purchase_orders. The following example creates a parent table orders which is range-partitioned on order_date. The reference-partitioned child table order_items is created with four partitions, Q1_2005, Q2_2005, Q3_2005, and Q4_2005, where each partition contains the order_items rows…

New Features for SQL

Question

Evaluate these statements:

CREATE TABLE purchase_orders (po_idNUMBER(4), po_dateTIMESTAMP, supplier_idNUM8ER(6), po_totalNUMBER(8,2), CONSTRAINT order_pk PRIMARY KEY(po_id)) PARTITIONBYRANGE(po_date) (PARTITIONQ1 VALUESLESSTHAN (TO_DATE('01-apr-2007','dd-mon-yyyy')), PARTITIONQ2VALUESLESSTHAN(TO_DATE('01-jul-2007','dd-mon-yyyy')), PARTITIONQ3VALUESLESSTHAN (TO~DATE('01-oct-2007','dd-non-yyyy')), PARTITIONQ4VALUESLESSTHAN (TO_DATE('Ol-jan-2008','dd-non-yyyy' ))); CREATETABLEpurchase_order_items (po_idNUM3ER(4)NOTNULL, product_idNUMBER(6)NOTNULL, unit_prlceNUMBER(8,2), quantity NUMBER(8), CONSTRAINTpo_items_f k FOREIGNKEY(po_id)REFERENCESpurchase_orders(po_id) ) PARTITIONBYREFERENCE(po_items_fk); Which two statements are true?

Options

  • APartitions of purchase_order_items are assigned unique names based on a sequence.
  • BThe purchase_orders and purchase_order_items tables are created with four partition each.
  • Cpurchase_order_items table partitions exist in the same tablespaces as the purchase_orders
  • DThe purchase_order_:teks table inherits the partitioning key by duplicating the key columns from
  • EPartition maintenance operations on the purchase_order_items table require disabling the foreign

How the community answered

(27 responses)
  • A
    11% (3)
  • B
    70% (19)
  • D
    4% (1)
  • E
    15% (4)

Explanation

The following example creates a parent table orders which is range-partitioned on order_date. The reference-partitioned child table order_items is created with four partitions, Q1_2005, Q2_2005, Q3_2005, and Q4_2005, where each partition contains the order_items rows corresponding to orders in the respective parent partition. Partitions of a reference-partitioned table will collocate with the corresponding partition of the parent table, if no explicit tablespace is specified for the reference-partitioned table's partition. The partitions of a reference-partitioned table can be named. If a partition is not explicitly named, then it will inherit its name from the corresponding partition in the parent table.

Topics

#reference partitioning#partition inheritance#foreign key#partition maintenance

Community Discussion

No community discussion yet for this question.

Full 1Z0-067 Practice