Code Quiz
Non-Sargable WHERE Kills the Index
A join query has an index that the optimizer refuses to use because of how the WHERE clause is written.
The idx_orders_created index exists but the query still does a full scan on orders. What is the bug?
A join query has an index that the optimizer refuses to use because of how the WHERE clause is written.
The idx_orders_created index exists but the query still does a full scan on orders. What is the bug?