Forked from tegansnyder/find-products-without-images.sql
Last active
December 22, 2018 15:31
-
-
Save michelve/3b51e8a89eb01c07aedf64415a3b0d52 to your computer and use it in GitHub Desktop.
Magento 2 - finding products without images - SQL
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 * FROM `catalog_product_entity` AS a | |
LEFT JOIN `catalog_product_entity_media_gallery` AS b ON a.entity_id = b.entity_id | |
WHERE b.value IS NULL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Magento 2
SELECT * FROM
catalog_product_entity
AS aLEFT JOIN
catalog_product_entity_media_gallery_value_to_entity
AS b ON a.entity_id = b.entity_idWHERE b.value_id IS NULL