QuestionQ116

VerifiedCreating and Managing Tables

Which CREATE TABLE statement is valid?

Question Image

Explanation

A table can have one primary key, including a composite primary key defined at table level. DEFAULT SYSDATE NOT NULL is a valid date-column definition, so the statement with the composite primary key on ord_no and item_no is valid. Oracle requires a default expression after DEFAULT, and column constraints cannot be separated as separate comma-delimited items within one column definition.

Learn more

Community Discussion

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