Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CursorAdapter and Null values
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
01236827
Message ID:
01236862
Vues:
17
>>>>Could they be FK to some tables?
>>>
>>>The meaning of FKs is NOT TO HAVE orphan records :-)
>>
>>What if you don't necessary require an entry for the ID? E.g. you may have a Key, then it should be in the child table, but you also allow to not have a relation.
>>
>>In our case (though VFP native tables) we used NULL in FK for such cases.
>
>That broke all rules for data integrity.
>The child table always must have corresponding record in the parent one, the opposite is not necessary.
>Can you give me an example?

I'm talking about the Parent table. In the parent table you don't have to have a value in FK field for the child table.

Example, Vendor record with an FK to an Address table. If we don't know the address for the vendor, we may have NULL in the FK field.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform