Jump to content

Requete SQL mail clients d'un produit


Recommended Posts

Select c.email, c.firstname, c.lastname, od.product_name, od.product_quantity
FROM ps_customer c
INNER JOIN ps_orders o ON o.id_customer = c.id_customer
INNER JOIN ps_order_detail od ON od.id_order = o.id_order AND od.product_id = XXX

Remplacez XXX par l'id du produit recherché^^

Link to comment
Share on other sites

2 minutes ago, Eolia said:
Select c.email, c.firstname, c.lastname, od.product_name, od.product_quantity
FROM ps_customer c
INNER JOIN ps_orders o ON o.id_customer = c.id_customer
INNER JOIN ps_order_detail od ON od.id_order = o.id_order AND od.product_id = XXX

Remplacez XXX par l'id du produit recherché^^

Merci pour votre réponse. Savez-vous pourquoi j'ai une " Erreur non définie "checkedForm" " ?

Capture d’écran 2021-11-25 à 14.44.49.png

Link to comment
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...