Which statement is true regarding the above command?

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?

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?

A.
The NEW_IDRDERS table would not get created because the DEFAULT value cannot be
specified in the column definition.

B.
The NEW_IDRDERS table would get created and only the NOT NULL constraint defined on the
specified columns would be passed to the new table.

C.
The NEW_IDRDERS table would not get created because the column names in the CREATE
TABLE command and the SELECT clause do not match.

D.
The NEW_IDRDERS table would get created and all the constraints defined on the specified
columns in the ORDERS table would be passed to the new table.



Leave a Reply 0

Your email address will not be published. Required fields are marked *