hi,
have a slow running query which seems to be caused by using month and year on the where clause.
is there an alternative?
takes 8 secs with this WHERE clause/half a sec without!
will post full query if needed - has anyone else had this issue?
have a slow running query which seems to be caused by using month and year on the where clause.
is there an alternative?
Code:
WHERE year(TOT.date) = year(current_date) and month(TOT.date) = month(current_date)
takes 8 secs with this WHERE clause/half a sec without!
will post full query if needed - has anyone else had this issue?