473,473 Members | 1,994 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Setting up tables and relationships for database

1 New Member
Hi,

I am new to Access...and I'm working on setting up a database for my group. I am struggling to figure out the best way to set up tables and relationships. I'd like to ask for your thoughts on the best way to do this. So my group has 7 divisions. Each division may have multiple types of requirements (contracts, travel, training, equipment, supplies, utilities, or other). Each division may also be responsible for construction projects and to make it more confusing for me, some of the construction projects may have different portions (delineated by tracking #s) that must be kept separate but also called up together as a single project. I need to be able to keep track of ALL of the costs associated with requirements and projects for each division, but I also need to be able to track requirements separate from projects. Both requirements and projects have some fields that are similar but also a LOT of fields that are not similar at all. So, if you were setting this up how many tables would you set up? One for divisions, one for requirements, one for Projects (but how would i be able to pull up the projects with multiple tracking #s as 1 project)?
Feb 6 '17 #1
1 910
PhilOfWalton
1,430 Recognized Expert Top Contributor
My mug's guide to normalisation is that each table should have information on a single subject that exists independently. A typical example is a names & addresses database.
There should be a table of people with things like names, sex, birthday, hair colour etc. A person is an independent object.
There should be a table of addresses including house number and post (zip) code. One can argue whether the town should be included in the address, my answer is no because again the town exists in it's own right and may or not contain that address.

Now to set up a relationship, you firstly define which town the address is in, then defining who lives at that address. (Could be a number of people.

So to get to your problem. It's a bit short of information so quite a lot of guesswork.

You need a table of Divisions with at least a DivisionID and a DivisionName.

You need a table of Requirements (Don't think that is a very meaningful name) but basically RequirementID and RequirementName.

You need a table of Projects, again ProjectID & Project Name. Now to link the project to the requirement, you also need a RequirementID as a foreign key.

You need a table of Portions with the usual PortionID, PortionName and a foreign key of ProjectID to link it with the project.

Somewhere in the last 2 table, you need to deal with costs.

You may be wondering why I haven't dealt with joining the Division table and the Reqirements table. This is a bit more comlicated.

To do this, you need a table TblJoinDivisionRequirements with a combined key of DivisionID and RequirementID. This allowd each Division to have as many Requirements as necessary and equally any requirement (e.g. training costs) can be linked to the relevant Division.

Hope this starts you off

Phil
Feb 7 '17 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Janne Timmerbacka | last post by:
Hello, where can I find limits of how many TABLES can exists in one DATABASE? Also, is there any performance penalty (or other) for having alot of TABLES in one DATABASE? Regards Janne...
5
by: Muzamil | last post by:
Hi My database contains , lets say, 100 tables. Out of these 100 tables, 60 tables contain both columns; Column1 and Column2. I want to: Update (All tables with BOTH of these columns) ...
3
by: paulwilliamsonremove | last post by:
Hi, I have been manually setting up relationships in Access 2003. I received an error message when leaving a form that told me the record could not be saved because I had to have a related...
1
by: WEM | last post by:
I filling a combo box with all 50 states and when I select a customer from a list box I want to find the identity(listindex) in the combo box which is the identity stored in the customer record. If...
3
by: kashifahmed.bse.mg | last post by:
Hello All, I would like to insert dynamically created related tables by using datatable collections in ado.net. So can anyone figure out which procedure is usefull to do this task. Example will...
5
by: Ron | last post by:
Hi All, Development stage of setting up a new solution here. I CONSTANTLY have to unhook the relationships I've built via the Relationships tab on Tools, then change the Required element of a...
3
by: shapper | last post by:
Hello, I need an advice: I have 3 tables: Posts, Events and Files. Each post, event and file can be a associated to one or many tags. My idea was to create only one Tags table. Note that...
11
by: Sandra Walsh | last post by:
Hello - I have an Access 2010 database that has a front end and a back end. Both are located in a shared folder on our server. I am trying to work through the process of publishing this...
2
by: AndrewStone | last post by:
Good afternoon! I am required to build an e-commerce website using visual studio (2010)with an MS Access database... The website will sell a variety of things from food, hospitality, etc. I was...
5
by: surendraringwal | last post by:
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package data; import java.sql.*; class Data {
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.