Big Halloween Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: simple70

Oracle MySQL 5.7 Database Administrator 1z0-888 Question # 3 Topic 1 Discussion

Oracle MySQL 5.7 Database Administrator 1z0-888 Question # 3 Topic 1 Discussion

1z0-888 Exam Topic 1 Question 3 Discussion:
Question #: 3
Topic #: 1

Consider the table people with this definition:

1z0-888 Question 3

The application uses a query such as:

SELECT * FROM people WHERE YEAR(Birthday) = 1980;

The query is not using an index.

Which two methods can be used to allow the query to use an index? (Choose two.)


A.

Change the WHERE clause to Birthday BETWEEN 1980-01-01 AND 1980-12-31.


B.

Add a functional index for YEAR(Birthday).


C.

Execute ANALYZE TABLE to update the index statistics.


D.

Add a generated column calculating YEAR(Birthday) and index that column.


E.

Add FORCE INDEX (Birthday) to the query.


Get Premium 1z0-888 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.