Oracle
1Z0-047 · Question #161
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?
Exhibit
Options
- AThe NEW_ORDERS table would not get created because the DEFAULT value cannot be specified in the
- 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 the
How the community answered
(47 responses)- A4% (2)
- B72% (34)
- C17% (8)
- D6% (3)
Community Discussion
No community discussion yet for this question.
