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
Za předpokladu, že máte tabulku mytable
s polem date
typu date
, datetime
nebo timestamp