Minty
AWF VIP
- Local time
- Today, 20:42
- Joined
- Jul 26, 2013
- Messages
- 10,371
Hi All,
I'm undecided about this so thought I'd ask the great and the good, bad and the ugly...
I need to have a reference table for countries (and various other fields) and am wondering do I add a primary key ID and use that or store the ISO country number?
Previously I have only ever need a country name so simply had that in a look-up table without a PK.
In this case, I need to retrieve different info from the table on a very frequent basis for currency info etc.
Sample below.
I'm undecided about this so thought I'd ask the great and the good, bad and the ugly...
I need to have a reference table for countries (and various other fields) and am wondering do I add a primary key ID and use that or store the ISO country number?
Previously I have only ever need a country name so simply had that in a look-up table without a PK.
In this case, I need to retrieve different info from the table on a very frequent basis for currency info etc.
Sample below.
Country_name | alpha-2 | alpha-3 | country-code | iso_3166-2 | region | sub-region | intermediate-region | region-code | sub-region-code | intermediate-region-code | CurrencyName | CurrencyShortCode | ISO_CurrencyCode |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Afghanistan | AF | AFG | 4 | ISO 3166-2:AF | Asia | Southern Asia | 142 | 34 | Afghani | AFN | 971 | ||
Åland Islands | AX | ALA | 248 | ISO 3166-2:AX | Europe | Northern Europe | 150 | 154 | Euro | EUR | 978 | ||
Albania | AL | ALB | 8 | ISO 3166-2:AL | Europe | Southern Europe | 150 | 39 | Lek | ALL | 008 | ||
Algeria | DZ | DZA | 12 | ISO 3166-2Z | Africa | Northern Africa | 2 | 15 | Algerian Dinar | DZD | 012 | ||
American Samoa | AS | ASM | 16 | ISO 3166-2:AS | Oceania | Polynesia | 9 | 61 | US Dollar | USD | 840 |