Question DB-IDX-0049
MediumA query filters WHERE YEAR(order_date) = 2024 and there is an index on order_date. How can it be rewritten so the index can be used?
- A.
It cannot
- B.
WHERE order_date LIKE '%2024%'
- C.
Sign up free to see the answer and a step-by-step explanation.