Oracle
1Z0-882 · Question #83
An application packs several fields of information into the details column of the table sensors. The first six characters of that data represent a location code. Example: "ABCDEFOO -ooozzz comments…
The correct answer is A. ALTER TABLE sensors ADD KEY (details ) USING BTREE B. ALTER TABLE sensors ADD KEY (details) USING HASH. See the full explanation below for the reasoning.
Question
An application packs several fields of information into the details column of the table sensors. The first six characters of that data represent a location code. Example: "ABCDEFOO -ooozzz comments will be here FIELDS----FIELD64" Given the query pattern:
SELECT...FROM sensors WHERE details LIKE `ABCDEF%' Which three ALTER TABLE commands enable the optimizer to user an index for this WHERE patterns?
Options
- AALTER TABLE sensors ADD KEY (details ) USING BTREE
- BALTER TABLE sensors ADD KEY (details) USING HASH
- CALTER TABLE sensors ADD KEY (details(8)) USING BTREE
- DALTER TABLE sensors ADD KEY (details(8))USING HASH
- EALTER TABLE sensors ADD FULLTEX (details)
How the community answered
(16 responses)- A69% (11)
- C6% (1)
- D6% (1)
- E19% (3)
Community Discussion
No community discussion yet for this question.