pepperwind / answer_key /kpis /emails_sent.sql
rasinmuhammed's picture
Pepperwind Trading Co. preview, version 1.0
27ec678 verified
Raw History Blame Contribute Delete
255 Bytes
-- 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