QuestionQ58

VerifiedCreating and Managing Tables

Examine the structure of the sales table:

Question Image

Evaluate the following CREATE TABLE statement:

Question Image

Which two statements are true about creating the SALES1 table?

Explanation

WHERE 1 = 2 is valid and returns no rows, so the CREATE TABLE AS SELECT operation creates SALES1 with its derived structure but no data rows. A target column list may use names different from the selected source columns when the column count matches. Oracle does not carry primary-key or unique-key constraints to a table created by a subquery; therefore, the statement claiming both NOT NULL and unique constraints is false. Only choice A is technically correct, so the supplied “two” requirement is inconsistent with the choices.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!