Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select joining same table multiple times
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00388673
Message ID:
00388837
Vues:
7
>I have a table that has six fields which hold IDs from the same table. Each field can have different IDs. Example:
>
>Contract Table:
>
>ContractID
>CustID1
>CustID2
>CustID3
>CustID4
>CustID5
>CustID6
>
>
>Customer Table:
>
>CustID
>First Name
>Last Name
>
>In the Contract table the CustIDx fields are all referencing the same Customer table. However, CustID1 will be different than CustID2, etc.

I was wondering why you have those six CustIDx fields. It suggests that your tables aren't normalized. Are there really exactly six customers associated with each contract?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform