Which two CREATE INDEX statements are valid?

View the Exhibit and examine the structure of ORD and ORD_ITEMS tables.
The ORD_NO column is PRIMARY KEY in the ORD table and the ORD_NO and ITEM_NO columns are composite PRIMARY KEY in the ORD_ITEMS table.
Which two CREATE INDEX statements are valid? (Choose two.)


A. CREATE INDEX ord_idx1
ON ord(ord_no);
B. CREATE INDEX ord_idx2
ON ord_items(ord_no);
C. CREATE INDEX ord_idx3
ON ord_items(item_no);
D. CREATE INDEX ord_idx4
ON ord, ord_items(ord_no, ord_date, qty);

Download Printable PDF. VALID exam to help you PASS.

2 thoughts on “Which two CREATE INDEX statements are valid?

    1. A is incorrect because you can’t create index for a field that was already indexed
      B is correct because it is perfectly fine to create a designated index for a field that was part of composite index
      C is correct because it is perfectly fine to create a designated index for a field that was part of composite index
      D is incorrect because you can’t create composite index for same fields in same order that was already indexed, but if you change the order of fields than an index will be created , for instance :
      create index ord_idx5 on ord_items(item_no, ord_no);

      so correct answers BC

Leave a Reply

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


The reCAPTCHA verification period has expired. Please reload the page.