Created
May 27, 2011 10:23
-
-
Save aj-justo/995001 to your computer and use it in GitHub Desktop.
Zen Cart SQL: Get all categories with products on them
This file contains 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 categories_description where language_id=1 and ( categories_id in (select categories_id from products_to_categories) or categories_id in (select parent_id from categories) ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment