Created
March 16, 2018 00:59
-
-
Save trabulium/43fbca0bb858a03cc2e04f818c7d116e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
select email, customer_id, product_id, sku, cpev.value, add_date from product_alert_stock as pas | |
left join catalog_product_entity as cpe on pas.product_id = cpe.entity_id | |
left join catalog_product_entity_varchar as cpev on cpev.`entity_id` = cpe.entity_id | |
where add_date > '2017-03-16 00:00:00' | |
and send_date is NULL | |
and cpev.attribute_id = 71 | |
order by cpev.value; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment