-- Emails sent -- Marketing and lifecycle emails by the month sent. SELECT strftime(sent_at, '%Y-%m') AS month, count(*) AS value FROM marketing.email_send WHERE sent_at >= TIMESTAMP '2023-10-01' AND sent_at < TIMESTAMP '2026-10-01' GROUP BY 1 ORDER BY 1