Skip to content

Instantly share code, notes, and snippets.

@tschifftner
Last active March 16, 2018 08:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tschifftner/465b668f4c6a134bb083fccc0cd69383 to your computer and use it in GitHub Desktop.
Save tschifftner/465b668f4c6a134bb083fccc0cd69383 to your computer and use it in GitHub Desktop.
Get all products not assigned to a category (Magento)
SELECT cpe.entity_id, cpe.sku
FROM catalog_product_entity as cpe
LEFT JOIN catalog_category_product as ccp on cpe.entity_id = ccp.product_id
WHERE category_id IS NULL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment