Oracle
1Z0-882 · Question #36
Inspect the query: Mysql> SELECT count (emp_no) FROM titles WHERE title = `senior staff'; How can this query be optimized?
The correct answer is B. The query cannot be optimized as an index is already used. See the full explanation below for the reasoning.
Question
Inspect the query:
Mysql> SELECT count (emp_no) FROM titles WHERE title = `senior staff'; How can this query be optimized?
Exhibit
Options
- AThe query need an index on the emp-no column.
- BThe query cannot be optimized as an index is already used.
- CThe query needs an index that includes the title column.
- DThe query cannot be optimized as count () must read all rows.
How the community answered
(46 responses)- A13% (6)
- B78% (36)
- C2% (1)
- D7% (3)
Community Discussion
No community discussion yet for this question.
