Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Relational Guru Help Needed!
Message
De
18/01/1999 17:57:30
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00177376
Message ID:
00177388
Vues:
31
>I need some help in correctly setting up my tables. I've never had these kinds of requirements before so here it goes.
>
>Let's say I need to setup a system to store different characteristics of an automobile. Let assume I want to store info. on all possible combinations of TYPE (car, van, truck), COLOR (blue, black, etc.), TRANSMISSION (auto, 5-speed, etc.) and DOORS (4-door, 2-door, etc.).
>
> snip...

You then should have 5 tables theorectically...
CARS, TYPE, COLOR, TRANSMISSION, DOORS.

I practice you may find that many of the characteristics have the attributes simply of Code, Description and Price
So you can have just two tables.
CARS, CHARACTERISTICS

It really depends on how well the different characteristics can be mapped onto each other. That is do they share a common set of attributes, such as description, price etc.
If you anticipate the system growing and more complex and different things happening with the characteristics, eg. transmission may have a supplier but color may not (although there are paint companies...) then stick with the strict model and have 5 tables.
HTH
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform