J'ai deux tables:
et
Comment lister le service de table et réunir le nom du client que la table des clients? le champ customer service dans la table a l'identifiant du client dans la table customer,
J'apprécie votre aide maintenant
SELECT * FROM table1 LEFT JOIN table2 on table1.id = table2.id
SELECT ...
FROM services AS s
JOIN clients AS c
ON s.client = c.id
WHERE ...
SELECT ...
FROM services AS s
INNER JOIN clients AS c
ON s.client=c.id
Essaye ça,
SELECT * from services as s INNER JOIN clients as c on s.id=c.id