Skip to content

Instantly share code, notes, and snippets.

@tschifftner
Created March 16, 2018 08:41
Show Gist options
  • Save tschifftner/ba9e2ce67ddc321b22ae32bb415d1e35 to your computer and use it in GitHub Desktop.
Save tschifftner/ba9e2ce67ddc321b22ae32bb415d1e35 to your computer and use it in GitHub Desktop.
Select all products with no image assigned (Magento)
SELECT sku, catalog_product_entity_media_gallery.value
FROM catalog_product_entity_media_gallery
RIGHT OUTER JOIN catalog_product_entity ON catalog_product_entity.entity_id = catalog_product_entity_media_gallery.entity_id
WHERE catalog_product_entity_media_gallery.value is NULL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment