Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Table relating to many other tables
Message
From
05/08/2002 10:20:57
 
 
To
05/08/2002 10:07:05
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00686134
Message ID:
00686140
Views:
40
>>Hi
>>
>>If you had a table that was related to say, 6 tables, would it be better to have 6 individual foreign key fields, or would it be better to have 1 foreign key field and then a "type" to identify where it came from.
>>
>>I prefer the latter, but what about everyone else?
>>
>>Thanks
>>Kev
>
>I see two difficulties with the approach you propose: 1) What if the table is related to two or more other tables at the same time? 2) It is quite messy to define relations.

1) That will never happen.
2) Type+Ref, not too bad

>I suggest you give a more specific example of what you want to achieve. What sort of information do the 6 "other" tables contain?

Quite simply, the table is a list of people, and there will need to be the ability to create lists related to different tables, so there will be more than 6 tables in the long run.

Kev
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform