Oracle
1Z0-047 · Question #254
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_ORDERS table would get created and only the NOT NULL constraint defined on the specified. 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?
Options
- AThe NEW_ORDERS table would not get created because the DEFAULT value cannot be specified in
- BThe NEW_ORDERS table would get created and only the NOT NULL constraint defined on the specified
- CThe NEW_ORDERS table would not get created because the column names in the CREATE TABLE
- DThe NEW_ORDERS table would get created and all the constraints defined on the specified columns in
How the community answered
(23 responses)- A17% (4)
- B70% (16)
- C9% (2)
- D4% (1)
Community Discussion
No community discussion yet for this question.