Last active
August 29, 2015 14:25
-
-
Save oreales/339424c0419e634dc21c to your computer and use it in GitHub Desktop.
Magento: Sacar emails de subscriptores y compradores de un store view
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SET @storeId = 10; | |
(SELECT subscriber_email as email FROM newsletter_subscriber WHERE store_id = @storeId) | |
UNION DISTINCT | |
(SELECT customer_email FROM sales_flat_order WHERE store_id = @storeId); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment