{MySQL} probleme de jointure SQL
Fermé
nordise
-
19 nov. 2009 à 16:59
gigaga Messages postés 2346 Date d'inscription vendredi 20 juin 2008 Statut Membre Dernière intervention 22 août 2014 - 19 nov. 2009 à 17:47
gigaga Messages postés 2346 Date d'inscription vendredi 20 juin 2008 Statut Membre Dernière intervention 22 août 2014 - 19 nov. 2009 à 17:47
A voir également:
- {MySQL} probleme de jointure SQL
- Mysql download - Télécharger - Bases de données
- Récupération serveur sql - Télécharger - Gestion de données
- Mysql error in file: /engine/classes/mysql.php at line 53 ✓ - Forum Réseaux sociaux
- Requête sql date supérieure à ✓ - Forum Programmation
- Sql replace plusieurs valeurs - Forum Programmation
3 réponses
gigaga
Messages postés
2346
Date d'inscription
vendredi 20 juin 2008
Statut
Membre
Dernière intervention
22 août 2014
301
19 nov. 2009 à 17:01
19 nov. 2009 à 17:01
Et ça?
SELECT clients.id as id, nom, adresse, ville, count(documents.id) as count FROM clients, documents documents.id_client = clients.id group by clients.id having count(*) = 0
Merci pour ton aide,
voici la requete fonctionnelle :
SELECT clients.id as id, nom, adresse, ville, count(documents.id) as count FROM `clients` left join documents on id_client = clients.id group by clients.id having count(documents.id) = 0;
voici la requete fonctionnelle :
SELECT clients.id as id, nom, adresse, ville, count(documents.id) as count FROM `clients` left join documents on id_client = clients.id group by clients.id having count(documents.id) = 0;
gigaga
Messages postés
2346
Date d'inscription
vendredi 20 juin 2008
Statut
Membre
Dernière intervention
22 août 2014
301
19 nov. 2009 à 17:47
19 nov. 2009 à 17:47
ok donc c bon alors? Si oui, tu peux mettre résolu?