Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save trabulium/43fbca0bb858a03cc2e04f818c7d116e to your computer and use it in GitHub Desktop.
Save trabulium/43fbca0bb858a03cc2e04f818c7d116e to your computer and use it in GitHub Desktop.
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