Jump to content
damdam13

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 ?

 

SELECT
ps_category.id_category,
ps_category.active,
`NameCategory`.`name` AS `Name`,
ps_category.id_parent,
`NameCategory`.description,
`NameCategory`.meta_title,
`NameCategory`.meta_keywords,
`NameCategory`.meta_description,
`NameCategory`.link_rewrite,
ps_image.id_image
FROM
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