Oracle
1Z0-071 · Question #30
View the Exhibit and examine the structure of the ORDERS table. The ORDER_ID column is the PRIMARY KEY in the ORDERS table. Evaluate the following CREATE TABLE command: CREATE TABLE…
The correct answer is B. The NEW_IDRDERS table would get created and only the NOT NULL constraint defined on the. See the full explanation below for the reasoning.
Question
View the Exhibit and examine the structure of the ORDERS table. The ORDER_ID column is the PRIMARY KEY in the ORDERS table. Evaluate the following CREATE TABLE command:
CREATE TABLE new_orders(ord_id, ord_date DEFAULT SYSDATE, cus_id) AS SELECT order_id.order_date,customer_id FROM orders; Which statement is true regarding the above command?
Exhibit
Options
- AThe NEW_IDRDERS table would not get created because the DEFAULT value cannot be
- BThe NEW_IDRDERS table would get created and only the NOT NULL constraint defined on the
- CThe NEW_IDRDERS table would not get created because the column names in the CREATE
- DThe NEW_IDRDERS table would get created and all the constraints defined on the specified
How the community answered
(14 responses)- A7% (1)
- B86% (12)
- C7% (1)
Community Discussion
No community discussion yet for this question.
