Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Basic Database Design Question

Status
Not open for further replies.

EzehM

Programmer
Feb 27, 2003
86
GB
I am a complete novice when it comes to database designs. I will like to design a database that contains in each row – the name of a country, The address of the country’s foreign ministry and the addresses of their embassies abroad

Will it make sense to have all this information in one table

e.g.

ID|Country| ForeignMinistry|EmbAlbania|EmbAlgeria etc

Considering that the number of columns might grow to more than 200!

Is there a better way to break this information down into more tables?

Thanks
 
I can see two tables at a quick glance.


[tt]Embassies Table
EmbassyID -> Primarykey
Embassy_Of_Country ->CountryID
Embassy_To_Country ->CountryID
Ambassador
<etc>

Countries Table
CountryID
CountryName
<etc>[/tt]

Which database you intend to use?

 
Remou,

Thanks. I intend to use MySQL.

How will these tables link with each other?
 
Thanks for your help. I have also been reading up on databases. Thanks
 
So what do you plan on doing with Embassador? Is that a name or like a person ID? You might find a person ID with a separate File like an employee file might be nice. Might need contact info or something. Names are too ambiguous. You could esily get two people with a similar or the same name.

If you do not like my post feel free to point out your opinion or my errors.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top