SELECT AVG(cnt)
FROM (SELECT COUNT(*) AS cnt
FROM mytable
WHERE `date` BETWEEN DATE_SUB(NOW(), INTERVAL 3 MONTH) AND NOW()
GROUP BY DATE(`date`)) x
Forudsat at du har en tabel mytable
med feltet date
af typen date
, datetime
eller timestamp