Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parent -child relations
Message
De
28/02/2002 15:53:41
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
28/02/2002 13:27:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00626587
Message ID:
00626659
Vues:
10
>Hi!
>
>Ok, let's say i got 2 tables (A & B) the second table sTores records that might become in child records of table A. My questions are: the posible child records, should be put in another table and establish a relation between table A and the new table or stay where they are and establish and a relation between both tables? In case, the second option is the right one (which I gues it is, for the updates, etc), what would happen if a child record could become in a child record for different parents? how could i deal with this?
>
>TIA

To resolve a many-to-many relationship, you need a third table.

I will switch to Spanish now.

Ejemplo: En una factura aparecen varios productos. Un producto puede aparecer en muchas facturas.

Solución: crear una tercera tabla, que en este caso representa "detalles de factura" (adicional a la tabla de facturas).

Saludos, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform