nerdexam
Oracle

1Z0-882 · Question #93

Inspect the SELECT query: Mysql> EXPLAIN SELECT employees. Emp_no, first_name, last_name FROM employees JOIN title WHERE to_date > `2008-10-11'; Guaranteed success with TestInsides practice guides…

The correct answer is C. Add an index on the to_ date column. See the full explanation below for the reasoning.

Question

Inspect the SELECT query:

Mysql> EXPLAIN SELECT employees. Emp_no, first_name, last_name FROM employees JOIN title WHERE to_date > `2008-10-11'; Guaranteed success with TestInsides practice guides 14 2 rows in set (0.00 sec) Which action will optimize the query?

Exhibit

1Z0-882 question #93 exhibit

Options

  • AAdd an index to the employees. emp _no column.
  • BAdd the keyword STRAIGHT_JOIN.
  • CAdd an index on the to_ date column.
  • DAdd the FORCE INDEX (PRIMARY) optimizer hint for the employees table.

How the community answered

(48 responses)
  • A
    13% (6)
  • B
    2% (1)
  • C
    77% (37)
  • D
    8% (4)

Community Discussion

No community discussion yet for this question.

Full 1Z0-882 Practice