Oracle
1Z0-882 · Question #8
Which of the following will CREATE a table with exactly one multi-column index?
The correct answer is C. CREATE TABLE names ( id INT, name CHAR(20) NOT NULL, INDEX name_id(id, name) ) D. CREATE TABLE names ( id INT, name CHAR(20) NOT NULL, INDEX(id,name) ). See the full explanation below for the reasoning.
Question
Which of the following will CREATE a table with exactly one multi-column index?
Options
- ACREATE TABLE names ( id INT, name CHAR(20) NOT NULL, INDEX name_id(id), INDEX
- BCREATE TABLE names ( id INT, name CHAR(20) NOT NULL, INDEX(id), INDEX(name) )
- CCREATE TABLE names ( id INT, name CHAR(20) NOT NULL, INDEX name_id(id, name) )
- DCREATE TABLE names ( id INT, name CHAR(20) NOT NULL, INDEX(id,name) )
- EAn index cannot be made to extend across multiple columns.
How the community answered
(59 responses)- A3% (2)
- B7% (4)
- C80% (47)
- E10% (6)
Community Discussion
No community discussion yet for this question.