SQL Practice Logo

SQLPractice Online

Level 6 - ExpertDebugging Questionsm2 performance schema

Debugging: Non-Sargable Date Predicate

Fix this query to use index on `created_at` effectively: SELECT id FROM invoices WHERE EXTRACT(YEAR FROM created_at) = 2026;