Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Master and child grid
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00428972
Message ID:
00428977
Vues:
13
>Hi,
> I have two tables, supplier and product. That is many to many relation between thiese two tables becoz one supplier may sipply more than one product. And on the other hand, same product may be able to suppy by many supplier.
> How should I set the relation?
> I got cycle relation error!!
>
>Thank you

For many to many relationships you need 3 tables.

Supplier
Product
SupplierProductLink

Say your Supplier Table looks like:

SupplierKey
SupplierName
SupplierAddress

Say your Product Table looks like:

ProductKey
ProductName
ProductDescription

Then the SupplierProductLink linking table would be:

SupplierKey
ProductKey


Thus the link table would hold the many to many relation.

Hope this helps.
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform