
Originally Posted by
Antnee
Is that the best way to do it?
no 
when you apply a function to a column, like DATE(updated), you do not get the benefit of indexed retrieval
better is to put the column on one side of the operator, and the calculations on the other
i suspect you can simply do
Code:
WHERE updated > ... some calculation
without worrying about the time component
as for the date calculations, be careful
if today is june 5th, then 5 days ago is may 31st, and 3 months before that is february the what?
Bookmarks