Skip to content

Instantly share code, notes, and snippets.

@jthandy
Created April 14, 2016 12:15
Show Gist options
  • Save jthandy/9fcb734d48fd8542ff08c99b15db61af to your computer and use it in GitHub Desktop.
Save jthandy/9fcb734d48fd8542ff08c99b15db61af to your computer and use it in GitHub Desktop.
select a.campaign_id, a.email_id, action_date as bounced_date, status as bounce_type
from {{env.schema}}.mailchimp_email_actions a
inner join {{env.schema}}.mailchimp_sent_to b
on a.campaign_id = b.campaign_id
and a.email_id = b.email_id
where action = 'bounce'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment