Oracle
1Z0-071 · Question #100
View the exhibit and examine the structure of the SALES, CUSTOMERS, PRODUCTS and TIMES tables. The PROD_ID column is the foreign key in the SALES table referencing the PRODUCTS table. The CUST_ID…
The correct answer is D. The NEW_SALES table would get created and all the NOT NULL constraints defined on the. See the full explanation below for the reasoning.
Question
View the exhibit and examine the structure of the SALES, CUSTOMERS, PRODUCTS and TIMES tables. The PROD_ID column is the foreign key in the SALES table referencing the PRODUCTS table. The CUST_ID and TIME_ID columns are also foreign keys in the SALES table referencing the CUSTOMERS and TIMES tables, respectively. Examine this command:
CREATE TABLE new_sales (prod_id, cust_id, order_date DEFAULT SYSDATE) AS SELECT prod_id, cust_id, time_id FROM sales; Which statement is true?
Exhibit
Options
- AThe NEW_SALES table would get created and all the FOREIGN KEY constraints defined on the
- BThe NEW_SALES table would not get created because the column names in the CREATE
- CThe NEW_SALES table would not get created because the DEFAULT value cannot be specified
- DThe NEW_SALES table would get created and all the NOT NULL constraints defined on the
How the community answered
(24 responses)- A4% (1)
- B4% (1)
- C8% (2)
- D83% (20)
Community Discussion
No community discussion yet for this question.
