Does the order of conditions in there where clause affect the speed of the query?
For instance, could:
select fname, lname
from people
where isValid = 1 and lname like '%test%'
be faster than
select fname, lname
from people
where lname like '%test%' and isValid = 1
Duplicate: Does the order of columns in a WHERE clause matter?