JMongi
Active member
- Local time
- Today, 00:16
- Joined
- Jan 6, 2021
- Messages
- 802
I hope this is the right forum for this. If not, please feel free to move this thread to a more appropriate location.
Since database design requires some knowledge of business rules to be effective, I'll try to summarize what's going on as best I can without getting too bogged down in the details.
Scope
This database overlaps two different areas so hopefully it's not trying to bite off more than it can chew. This database is meant to accomplish two primary goals:
1. We have a current Word document with a table in it
that is used as a master list of our units. Units are our primary business and are a piece of machinery that is either leased or sold to other third parties. These units have various attributes associated with their use. They also have various attributes associated with their use by our customers. All of these attributes are stored in this list. Goal 1 is to move this list into a database setup so that there is 1 master repository of information and then this repository is used to generate any other needed reports/lists. (Sounds like a database doesn't it!
)
2. We have a variety of major components that go on these units that need maintained/monitored, various shop equipment that needs the same, and the units themselves are in various states. While it is not going to be a full asset tracking system, the main idea is to manage the maintenance/tasks associated with this equipment. We have ZERO system for this right now. We just started to do a better job of assessing units going out and coming in. So unfortunately, that means that there aren't a lot of robust business rules to lean on to develop this system.
Right or wrong I've already done a lot of work setting up the database and I think it captures what we need fairly well. I'm going to assume
that I did an okay job. I do have a wrinkle I'm trying to sort out. It involves the relationship between our units and my master equipment list for the maintenance portion.
Equipment List
The equipment table contains EqID as a PK and a subsequent list of basic details. I have additional tables for each equipment type (Vehicle, Engine, Compressor, etc) with their specific detail fields. These are connected via 1:1 relations using EqID. Pretty basic stuff.
Unit List
The master unit list was more difficult because of its variability on the structure of the unit itself which makes capturing its major components a bit trickier. Thankfully, the units lend themselves into subdividing the tricky parts and I was able to create a structure I believe will capture the data without duplication.
One tricky part is that some of the equipment in the previous list will be attached into these various subdivisions i.e. a specific engine will be attached in the drive subdivision. So there is a 1:M relationship using EqID and the subdivision field on the unit. Like I said, though, I think this is sorted.
The Question
So I have a table "UnitBasicInfo" and a table "UnitAssyInfo". They are connected 1:1 through the "UnitID" field. The UnitAssyInfo table is the one that manages the relations to the various equipment that could go into the unit. How do I connect the Unit to my master "Equipment" table? Do I place an EqID field in UnitBasicInfo and make it the primary key. Will that affect how UnitBasicInfo and UnitAssyInfo get related?
If I can clarify or need to adjust something for forum rules, let me know. Thanks!
Since database design requires some knowledge of business rules to be effective, I'll try to summarize what's going on as best I can without getting too bogged down in the details.
Scope
This database overlaps two different areas so hopefully it's not trying to bite off more than it can chew. This database is meant to accomplish two primary goals:
1. We have a current Word document with a table in it


2. We have a variety of major components that go on these units that need maintained/monitored, various shop equipment that needs the same, and the units themselves are in various states. While it is not going to be a full asset tracking system, the main idea is to manage the maintenance/tasks associated with this equipment. We have ZERO system for this right now. We just started to do a better job of assessing units going out and coming in. So unfortunately, that means that there aren't a lot of robust business rules to lean on to develop this system.
Right or wrong I've already done a lot of work setting up the database and I think it captures what we need fairly well. I'm going to assume

Equipment List
The equipment table contains EqID as a PK and a subsequent list of basic details. I have additional tables for each equipment type (Vehicle, Engine, Compressor, etc) with their specific detail fields. These are connected via 1:1 relations using EqID. Pretty basic stuff.
Unit List
The master unit list was more difficult because of its variability on the structure of the unit itself which makes capturing its major components a bit trickier. Thankfully, the units lend themselves into subdividing the tricky parts and I was able to create a structure I believe will capture the data without duplication.
One tricky part is that some of the equipment in the previous list will be attached into these various subdivisions i.e. a specific engine will be attached in the drive subdivision. So there is a 1:M relationship using EqID and the subdivision field on the unit. Like I said, though, I think this is sorted.
The Question
So I have a table "UnitBasicInfo" and a table "UnitAssyInfo". They are connected 1:1 through the "UnitID" field. The UnitAssyInfo table is the one that manages the relations to the various equipment that could go into the unit. How do I connect the Unit to my master "Equipment" table? Do I place an EqID field in UnitBasicInfo and make it the primary key. Will that affect how UnitBasicInfo and UnitAssyInfo get related?
If I can clarify or need to adjust something for forum rules, let me know. Thanks!