nerdexam
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

1Z0-882 question #36 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)
  • A
    13% (6)
  • B
    78% (36)
  • C
    2% (1)
  • D
    7% (3)

Community Discussion

No community discussion yet for this question.

Full 1Z0-882 Practice