QuestionQ248

VerifiedManage Database Performance

Evaluate the following 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 correct?

Choose two
Explanation

A reference-partitioned child table has one partition for every partition of its non-composite referenced parent. The child partitions inherit the corresponding parent partition names unless a name conflict occurs, and they collocate with the corresponding parent partitions when no explicit child-partition tablespace is specified. Reference partitioning uses the foreign-key relationship rather than duplicating the parent partition-key columns. Oracle Database VLDB and Partitioning Guide

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!