I am looking to select tickets from the previous 3 months. By calculate the previous 3 months. I saw this post: https://stackoverflow.com/questions/7268896/calculate-3-month-period-using-mysql
But it does not seem to work. Here is my query
select `created`, datediff( now(), `created`) as period , now()
from tag
having period%90=0;
But this is returning dates such as
created period now()
2009-10-25 12:42:15 1170 2013-01-07 10:15:37
any ideas? thanks