J'ai une table product
:Modélisation SQL (un à plusieurs) dans SQL Server 2005
ProdId(PK)
Prod1
Prod2
Prod3
Prod4
et Certification
table:
Certification(PK):
Cert1
Cert2
Cert3
Je dois modéliser ProdwithCert
relation (pseudo tableau) comme suit :
ProdwithCertId(PK) ProdwithCert
ProdwithCert1 "Prod1 with Cert1"
ProdwithCert2 "Prod1 with Cert1, Cert2"
ProdwithCert3 "Prod1 with Cert1, Cert2, Cert3"
ProdwithCert4 "Prod2 with Cert1, Cert2"
ProdwithCert5 "Prod2 with Cert1, Cert2, Cert3"
Voici les contraintes:
- Impossible de dupliquer, par ex. dans le tableau ci-dessus,
ProdwithCert6 - "Prod2 with Cert1, Cert2, Cert3"
n'est pas permis Product
a au moins unCertification
Comment puis-je modéliser correctement ProdwithCert
relation dans SQL Server 2005?
Merci