Jointure et requête sur 3 tables
Résolu/Fermé
hakim_fth
hakim_fth
- Messages postés
- 139
- Date d'inscription
- samedi 21 juin 2008
- Statut
- Membre
- Dernière intervention
- 27 février 2022
hakim_fth
- Messages postés
- 139
- Date d'inscription
- samedi 21 juin 2008
- Statut
- Membre
- Dernière intervention
- 27 février 2022
A voir également:
- Jointure sql 3 tables
- Jointure et requête sur 3 tables ✓ - Forum - MySQL
- Requete sql jointure 3 tables - Articles
- Comment faire une jointure externe entre 3 tables ? ✓ - Forum - MySQL
- Problème de jointure dans une requête: JOIN ou table temporaire? ✓ - Forum - MySQL
- Jointure de 3 tables ✓ - Forum - Programmation
2 réponses
yg_be
Modifié le 18 mai 2020 à 08:36
- Messages postés
- 19556
- Date d'inscription
- lundi 9 juin 2008
- Statut
- Contributeur
- Dernière intervention
- 1 juillet 2022
Modifié le 18 mai 2020 à 08:36
bonjour, commence par faire un join entre les tables clients et charges. cela te rapproche t'il du résultat attendu?
hakim_fth
18 mai 2020 à 19:22
- Messages postés
- 139
- Date d'inscription
- samedi 21 juin 2008
- Statut
- Membre
- Dernière intervention
- 27 février 2022
18 mai 2020 à 19:22
Résolu, Merci yg_be
select nom_client, libelle, montant from clients c
join charges ch
left join paiements p on p.id_client = c.id_client and ch.id_charge = p.id_charge
order by c.id_client