1Z0-007 · Question #25
Examine the structure of the EMPLOYEES table: You need to create an index called NAME_IDX on the first name and last name fields of the EMPLOYEES table. Which SQL statement would you use to perform…
The correct answer is E. CREATE INDEX NAME_IDX. Answer E provides correct syntax to create index: CREATE INDEX index_name ON table_name(list of columns). Incorrect Answers A: You need to use keyword ON also to create index. B: You cannot use keyword AND to build a list of columns for index. Also this statement is missing the…
Question
Examine the structure of the EMPLOYEES table:
You need to create an index called NAME_IDX on the first name and last name fields of the EMPLOYEES table. Which SQL statement would you use to perform this task?
Exhibit
Options
- ACREATE INDEX NAME_IDX (first_name, last_name);
- BCREATE INDEX NAME_IDX (first_name AND last_name);
- CCREATE INDEX NAME_IDX
- DCREATE INDEX NAME_IDX
- ECREATE INDEX NAME_IDX
- FCREATE INDEX NAME_IDX
How the community answered
(30 responses)- A10% (3)
- B3% (1)
- D3% (1)
- E80% (24)
- F3% (1)
Explanation
Answer E provides correct syntax to create index: CREATE INDEX index_name ON table_name(list of columns). Incorrect Answers A: You need to use keyword ON also to create index. B: You cannot use keyword AND to build a list of columns for index. Also this statement is missing the table name on which the index is creating. C: This statement is missing the table name on which the index is creating. D: You cannot use keyword AND to build a list of columns for index. F: You cannot use keyword FOR to create an index.
Topics
Community Discussion
No community discussion yet for this question.
