Jump to content

Problême Requête SQL

Recommended Posts

Bonjour et merci pour votre contribution.


J'aimerais lister toutes mes catégories pour voir celles qui n'ont pas d'images.


J'ai commencé la requête...mais elle comporte des anomalies... pouvez vous svp m'aider à la corriger ?


`NameCategory`.`name` AS `Name`,
ps_category, ps_image
INNER JOIN ps_category ON ps_product.id_category_default=ps_category.id_category
INNER JOIN ps_image ON ps_product.id_product=ps_image.id_product
LEFT JOIN ps_category_lang AS `NameCategory` ON `NameCategory`.id_category = ps_category.id_category
LEFT JOIN ps_category_lang AS `NameParent` ON `NameParent`.id_category = ps_category.id_parent
ORDER BY ps_category.id_category ASC

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More