RE: Design help

2013-04-21 Thread Ilya Kazakevich
Hello, >Many thanks for your response. Can yo u offer any advice with regards usage >of country_codes eg gb and regions, cities etc ? I've been reading up on >http://en.wikipedia.org/wiki/ISO_3166 etc. Should I be looking to use a >Surrogate key for countries ? Or the country code like fr for

Re: Design help

2013-04-21 Thread Neil Tompkins
Many thanks for your response. Can yo u offer any advice with regards usage of country_codes eg gb and regions, cities etc ? I've been reading up on http://en.wikipedia.org/wiki/ISO_3166 etc. Should I be looking to use a Surrogate key for countries ? Or the country code like fr for France ? Sa

Re: Design help

2013-04-21 Thread Denis Jedig
Neil, Am 21.04.2013 08:47, schrieb Neil Tompkins: Using joins I can obtain which country each city belongs too. However, should I consider putting a foreign key in the CITIES table referencing the countries_id ? Or is it sufficient to access using a join ? It depends. Adding a reference to