Last active
April 25, 2017 05:32
-
-
Save drewdhunter/8752315 to your computer and use it in GitHub Desktop.
Magento - find parent-less simple products
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 | |
entity_id | |
FROM | |
catalog_product_entity | |
WHERE | |
type_id = 'simple' | |
AND( | |
entity_id NOT IN( | |
SELECT DISTINCT | |
(product_id) | |
FROM | |
`catalog_product_super_link` | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment