superfly5203
Registered User.
- Local time
- Today, 15:52
- Joined
- Apr 5, 2016
- Messages
- 43
I made a database and I guess I was getting a head of myself and when I started to design a query, some flaws became apparent. I'll give some background onto what my database does. My problem sounds a lot like a poster from yesterday who wanted to know why having one huge table is bad. Right now all my data is in one table that is about 75 fields long.
My database tracks contract changes, a change is when some additional work is added to a contract. All changes have a specific "change number", which my PK. There is some basic information that all changes have such as a title or description of the change, what contract the change will affect, what office requested the change, when was the change approved, and the names of the people who process the change. All of those are combo boxes, except the title field.
After this information is entered, i have 5 checkboxes which will determine the "type" of change: overlimit (over a dollar threshold), underlimit (under a threshold), UCA (high priority change), PIO (buying certain type of equipment). I also have another checkbox for if there was additional information submitted after a proposal was received.
After the appropriate check boxes are checked, my form will make the corresponding fields visible for data to be entered. Depending on the type of change selected, there will be fields for a cost of the change, the profit on the change and those two added together make up the price. There are four categories for those dollars, the amount which was proposed (what the contractor wanted for their change), the objective (what we wanted to pay), a max (the most we would pay), and negotiated (what we are going to pay). There are also dates for the seven steps each change goes through on its way to being completed. I have baseline date fields (if the change moved at a predetermined schedule) and actual dates (the dates that really happened).
So all of this data goes into one field right now. I see there are a few places that could be other tables, like the contracts, or the people who worked on the change, or the office who approved it. My question is, how can I set that up with multiple tables? For example, now my first few fields look like this: change number, change title, contract, date change approved, approving office, procurement person, technical person, finance person, then my checkboxes, then my dollars, then my dates.
If I had two tables, I don't know how I could tie these different tables together. I don't see how my database relates to many of the examples, the customer and orders, on this site.
Thanks for any help.
My database tracks contract changes, a change is when some additional work is added to a contract. All changes have a specific "change number", which my PK. There is some basic information that all changes have such as a title or description of the change, what contract the change will affect, what office requested the change, when was the change approved, and the names of the people who process the change. All of those are combo boxes, except the title field.
After this information is entered, i have 5 checkboxes which will determine the "type" of change: overlimit (over a dollar threshold), underlimit (under a threshold), UCA (high priority change), PIO (buying certain type of equipment). I also have another checkbox for if there was additional information submitted after a proposal was received.
After the appropriate check boxes are checked, my form will make the corresponding fields visible for data to be entered. Depending on the type of change selected, there will be fields for a cost of the change, the profit on the change and those two added together make up the price. There are four categories for those dollars, the amount which was proposed (what the contractor wanted for their change), the objective (what we wanted to pay), a max (the most we would pay), and negotiated (what we are going to pay). There are also dates for the seven steps each change goes through on its way to being completed. I have baseline date fields (if the change moved at a predetermined schedule) and actual dates (the dates that really happened).
So all of this data goes into one field right now. I see there are a few places that could be other tables, like the contracts, or the people who worked on the change, or the office who approved it. My question is, how can I set that up with multiple tables? For example, now my first few fields look like this: change number, change title, contract, date change approved, approving office, procurement person, technical person, finance person, then my checkboxes, then my dollars, then my dates.
If I had two tables, I don't know how I could tie these different tables together. I don't see how my database relates to many of the examples, the customer and orders, on this site.
Thanks for any help.