sinbad Posted January 20, 2007 Share Posted January 20, 2007 Hi,I want a table of all countries including the names of the countries in different languages.Please tell me which design is better1) countries (country_id, language_id, country_name) In design No 1, I will have three fields, but 200 records for each language, so that 1400 rocords for 7 languages2) countries (country_id, eng_name, fre_name, spa_name, Ger_name, etc )And in this case I will have no more than 200 rocords, but an extra field for each language.Please tell me what do you think.RegardsSinbad Quote Link to comment Share on other sites More sharing options...
artacus Posted January 21, 2007 Share Posted January 21, 2007 It depends on your data. If I'm going to have a bunch of holes (countries w/o a corresponding language) then I'd go w/ option 2. Quote Link to comment Share on other sites More sharing options...
Ninjakreborn Posted January 21, 2007 Share Posted January 21, 2007 I agree, I think number 2 would be a lot more organized, and usefull for that kind of purpose. Quote Link to comment Share on other sites More sharing options...
fenway Posted January 22, 2007 Share Posted January 22, 2007 I disagree -- it does depend on how you intend to use these records, and if you'd ever need the language groups all on their own; but if you have lots of holes, why not go with 1? Quote Link to comment Share on other sites More sharing options...
ShogunWarrior Posted January 22, 2007 Share Posted January 22, 2007 Though not an expert in MySQL I think type no.1 is better because it is more normalized, more easily extendable and if the fields are indexed should be faster for operations such as getting all country names in French. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.