Query Run
SELECT LEFT(log_timestamp, 8) AS 'year-month-day', COUNT(*) FROM... 7 months ago
SELECT LEFT(log_timestamp, 6) AS 'year-month', COUNT(*) FROM logging WHERE... 7 months ago