par
Valentin » 06 avr. 2005, 15:46
Bonjoure,
j'ai 3 tables :
entreprise : (identreprise, raisonSocial, adresse ...)
contact : (idEntreprise, idContact, nom, prenom, ....)
abonnement : (idContact, abonnement)
je souaite afficher la fiche d'entreprise, + tous les contact et pour chaque contact tous les abonnement.
je fais une requete pour entreprise : select * from entreprise
une requete pour contact select * from contact, abonnement where contact.idcontact=abonnement.idcontact
le probleme est je ne veux pas répété le nom de mon contact plusieurs fois.
Exemple :
Entreprise : toto
contact : dupond abonné au (abo1, abo2, ...)
contact :durand abonné au (abo1, abo5, ...)
ainsi de suite pour chaque entreprise, et à l'interiurs de chaque entreprise pour chaque contact.
merci pour votre aide et suggestion.
Bonjoure,
j'ai 3 tables :
entreprise : (identreprise, raisonSocial, adresse ...)
contact : (idEntreprise, idContact, nom, prenom, ....)
abonnement : (idContact, abonnement)
je souaite afficher la fiche d'entreprise, + tous les contact et pour chaque contact tous les abonnement.
je fais une requete pour entreprise : select * from entreprise
une requete pour contact select * from contact, abonnement where contact.idcontact=abonnement.idcontact
le probleme est je ne veux pas répété le nom de mon contact plusieurs fois.
Exemple :
Entreprise : toto
contact : dupond abonné au (abo1, abo2, ...)
contact :durand abonné au (abo1, abo5, ...)
ainsi de suite pour chaque entreprise, et à l'interiurs de chaque entreprise pour chaque contact.
merci pour votre aide et suggestion.