Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Normalization
Message
De
13/02/2008 09:22:44
 
 
À
12/02/2008 18:57:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
01291981
Message ID:
01292120
Vues:
22
Others already gave the advice to use a third table (called a 'crosstable' by me). That may be sufficient in your case. However, other problems may arise. For example, those people and businesses also have roles and people can have more roles even within one business. Roles can be time related, that is, be valid from-till a certain date. People and businesses can have more phonenumbers and the like, also time related.

If you're interested in a revolutionary model that handles those problems, take a look here: http://www.viafox.nl/articles/Introduction%20to%20the%20Condes%20Address%20Model.html

>I have a puzzle regarding database normalization. There are 2 tables BusinessSites and BusinessPeople. For each business site there may be multiple people and for each business person there may be multiple sites. Hence either table may be the parent or the child in a 1 to many relationship.
>
>My problem is how to structure the fields for the connections. IE how would you tag the people so they could be associated with many sites? and vice versa? One thought is to have multiple site fields in the people table. (Site1, Site2, Site3, etc.) This strikes me as clumsy and difficult at best.
>
>Another thought is to store the siteIDs in a text or memo field (BusinessPeople.sites) with values like (1,23,43,57) and then parse the field to identify the sites the person is associated with. I'm not really comfortable with this either.
>
>The problem can't be really all that unusual so I was wondering how others deal with it.
>
>Thanks
Groet,
Peter de Valença

Constructive frustration is the breeding ground of genius.
If there’s no willingness to moderate for the sake of good debate, then I have no willingness to debate at all.
Let's develop superb standards that will end the holy wars.
"There are three types of people: Alphas and Betas", said the beta decisively.
If you find this message rude or offensive or stupid, please take a step away from the keyboard and try to think calmly about an eventual a possible alternative explanation of my message.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform