Databases · Middle · Question 3 of 75

There's an index on created_at. Why might WHERE date(created_at) = '2026-11-01' ignore it?

Explanation

Rewrite as created_at >= '2026-11-01' AND created_at < '2026-11-02', or create an index on the expression itself.

Further reading

Problem with a question

Databases · Middle · question 3

Test yourself

Take the Databases · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz