Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Connecting tables
Message
De
24/08/2001 06:08:11
 
 
À
24/08/2001 03:32:55
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00548366
Message ID:
00548525
Vues:
7
What is difference betwen connecting tables with primary keys and connecting primary key with non-primary key?


>>Can someone explain to me, how the tables are connecting (primary key with wath, indexes and others) in some database?
>
>Boban,
>In its simple form a primary key connects to any other key expression (foreign key). Primary key constitutes the '1' side and foreign key 'many' side. If you connect 2 primary keys than it'd be 1-to-1.
>Keep in mind that these are 'persistent' definitions for database and you're never limited to those connections. ie: customer.cust_id (PK) connects to orders.cust_id (FK). Here parent is customer and orders is child. However at times (such as reporting) you might well reverse the relation from orders to customer (not persistent).
>If you dont need persistent relations (Referential integrity control) than you might never create them. But IMHO if nothing else they visually help you to see relations between tables in a DBC.
>Cetin
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform