Countries and capital cities

smeco

Board Regular
Joined
Jan 23, 2004
Messages
51
I want to have a table of cities and a table of countries.
For each city I need to say in which country it is, and for each country I need to say which one is the capital city.

How should I structure the tables?!

Should I have a 'CITIES' table with a field that indicates the country and a 'COUNTRIES' table which indicates the capital city, and somehow check that the capital city specified does actually belong to that country?!

thanks in advance
smeco
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
In your CITIES table add a Yes/No field, Capital say, that indicates if the city is a capital.

The COUNTRIES table should just have the one field for the country.
 
Upvote 0

Forum statistics

Threads
1,221,838
Messages
6,162,286
Members
451,759
Latest member
damav78

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top