QuestionQ253

VerifiedManaging Schema Objects

View the Exhibit and review the structure of the ORD and ORD_ITEMS tables.

The ORD_NO column is the PRIMARY KEY in the ORD table, and the ORD_NO and ITEM_NO columns form a composite PRIMARY KEY in the ORD_ITEMS table.

Which two CREATE INDEX statements are valid?

Question Image

Choose two
Explanation

Oracle Database creates a unique index to enforce a primary key. A single column that is already indexed cannot be indexed again, but additional indexes may be created on columns that are part of a concatenated (composite) index. Thus, separate indexes on ORD_ITEMS.ORD_NO and ORD_ITEMS.ITEM_NO are valid.

Learn more

Community Discussion

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