Skip to content

Instantly share code, notes, and snippets.

@GreatPotato
Last active July 7, 2016 13:38
Show Gist options
  • Save GreatPotato/81fdfab2223d87df42fce813b1240f50 to your computer and use it in GitHub Desktop.
Save GreatPotato/81fdfab2223d87df42fce813b1240f50 to your computer and use it in GitHub Desktop.
Mailchimp export
SELECT billing_first_name, billing_last_name, billing_email, shop_countries.name as 'country'
FROM shop_orders
LEFT JOIN shop_countries
ON shop_countries.id = shop_orders.billing_country_id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment