A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Country info database



 
 
Thread Tools Display Modes
  #1  
Old June 8th, 2004, 03:36 PM
CArl
external usenet poster
 
Posts: n/a
Default Country info database

Hi,
Fairly new to this so hoping someone can stop me wasting time going down the wrong road.
Trying to produce a table of country info, (several columns - country, remarks, useful websites, last updated source), etc. Which is easy.

Then othe tables consisting of approx twenty different subjects (finance, company info) with several columns (e.g. available Yes or No, info, websites etc) for every country.

My idea was to create a main table (the country info) and give each country a sub-data sheet containing each of th twenty 'product types (and their associated columns). Even though most product types will not be availablee this is iintended to ensure consistency should the availability change down the line.

Does this structure make sense to anyone?

Thanks,
  #2  
Old June 8th, 2004, 05:26 PM
Tim Ferguson
external usenet poster
 
Posts: n/a
Default Country info database

"=?Utf-8?B?Q0FybA==?=" wrote in
:

My idea was to create a main table (the country info) and give each
country a sub-data sheet containing each of th twenty 'product types
(and their associated columns). Even though most product types will
not be available this is intended to ensure consistency should the
availability change down the line.


It is not very clear from your post what exactly you are planning to
achieve, but this solution is probably not the best way to go. For a start,
"subdatasheets" do not have any place in normal db design -- all data entry
should use proper forms rather than the table grids.

From the information in your posting, it seems you need (at least) three
tables -- Countries, Websites, and Subjects. It is quite likely that you
will need more tables to implement the relationships between them. You have
also mentioned Products and ProductTypes but I cannot really help without
knowing more about what you are trying to model.

B Wishes



Tim F

  #3  
Old June 8th, 2004, 06:57 PM
John Vinson
external usenet poster
 
Posts: n/a
Default Country info database

On Tue, 8 Jun 2004 07:36:13 -0700, "CArl"
wrote:

My idea was to create a main table (the country info) and give each country a sub-data sheet containing each of th twenty 'product types (and their associated columns). Even though most product types will not be availablee this is iintended to ensure consistency should the availability change down the line.

Does this structure make sense to anyone?


First off - I'd recommend NEVER using datasheets for routine
interaction with your data. Use Forms instead.

Secondly, it appears that you have a classic many to many
relationship. This needs *three* tables: Countries; Products; and a
ProductsSold table linking them. This "resolver" table would contain
the CountryID and the ProductID as links to the other two tables, plus
whatever fields you need to cover this product in this country.


John W. Vinson[MVP]
Come for live chats every Tuesday and Thursday
http://go.compuserve.com/msdevapps?loc=us&access=public
  #4  
Old June 25th, 2004, 04:45 PM
Carl
external usenet poster
 
Posts: n/a
Default Country info database



"CArl" wrote:

Hi,
Fairly new to this so hoping someone can stop me wasting time going down the wrong road.
Trying to produce a table of country info, (several columns - country, remarks, useful websites, last updated source), etc. Which is easy.

Then othe tables consisting of approx twenty different subjects (finance, company info) with several columns (e.g. available Yes or No, info, websites etc) for every country.

My idea was to create a main table (the country info) and give each country a sub-data sheet containing each of th twenty 'product types (and their associated columns). Even though most product types will not be availablee this is iintended to ensure consistency should the availability change down the line.

Does this structure make sense to anyone?

Thanks,

  #5  
Old June 26th, 2004, 10:22 PM
Jeff Boyce
external usenet poster
 
Posts: n/a
Default Country info database

Carl

Based on your description, I'd suggest you look into the topic of
normalization. Then, shut down your PC and grab paper/pencil and start
laying out relational tables.

If this doesn't make sense, here's a pointer --

If one country can have many "useful websites", you have described a need
for two tables, related one-to-many.


--
Good luck

Jeff Boyce
Access MVP

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:44 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.