Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Provinces VS countries
Message
De
27/07/2009 23:27:39
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01414579
Message ID:
01414965
Vues:
35
>Alan,
>
>I'd be willing to bet that 99.999% of all apps developed by US companies have a State table populated with US states and some fraction of them include Canadian Provinces and some fraction contain the Mexico states etc. 99.999% of all apps developed by Canadian companies have a Province table populated with the Candian provinces, some fraction contain the US states and some contain the Mexican states. The Swiss developers name that table Canton and so on.

I wouldn't disagree with any of that. But we're talking about the question asked by Michel, not by 99.999% of U.S. companies. I still say that without knowing his particular needs for these tables, any advice you or I or anyone else gives is speculative at best.

>
>Bad name for a table? I don't believe so. There is no generic name for sub-geopolitical units of a country. In the context of code readability to the people that read it the most having a table named state (or province ( or canton ) ) makes the most sense. Do you have to make a mental translation if you read my database code or I yours? Yup, but it's a very minor one.

Again, I agree. But I still don't know Michel's particular need, so I don't know if the words "Country" and "Province" aren't just getting in the way of the discussion.

>
>>And there is the key. So far I haven't seen anything here that suggests the actual purpose that Michel's tables are supposed to serve. Without knowing exactly what the two tables are supposed to be used for, it's difficult to say whether or not they need changing, or if it's just an unfortunate choice of table names.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform