exam questions

Exam 1z0-908 All Questions

View all questions & answers for the 1z0-908 exam

Exam 1z0-908 topic 1 question 140 discussion

Actual exam question from Oracle's 1z0-908
Question #: 140
Topic #: 1
[All 1z0-908 Questions]

Examine this statement, which executes successfully:

Now examine this query:

You must add an index that can reduce the number of rows processed by the query.
Which two statements can do this? (Choose two.)

  • A. ALTER TABLE employees -
    ADD INDEX (birth_date DESC);
  • B. ALTER TABLE employees -
    ADD INDEX ((MONTH(birth_date)));
  • C. ALTER TABLE employees -
    ADD COLUMN birth_month tinyint unsigned GENERATED ALWAYS AS (MONTH(birth_date)) VIRTUAL NOT NULL,
    ADD INDEX (birth_month);
  • D. ALTER TABLE employees -
    ADD COLUMN birth_month tinyint unsigned GENERATED ALWAYS AS (birth_date->>'$.month') VIRTUAL NOT NULL,
    ADD INDEX (birth_month);
  • E. ALTER TABLE employees -
    ADD INDEX ((CAST(birth_date->>'$.month' AS unsigned)));
  • F. ALTER TABLE employees -
    ADD INDEX (birth_date);
Show Suggested Answer Hide Answer
Suggested Answer: AD 🗳️

Comments

Chosen Answer:
This is a voting comment. You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
marklv
5 months, 3 weeks ago
B functional index C virtual column with index.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
AI-900
Dublin, 1 minute ago