Navyguy
Registered User.
- Local time
- Today, 16:15
- Joined
- Jan 21, 2004
- Messages
- 194
Empty Columns / Fields – Normalization
Looking for some advice here; I have several tables that have a similar issue that I am not sure really is an issue. I just might be trying to over complicate it.
Each table has a primary key and then several “place holders” that may be used. The table(s) is normalized to the point where it may not be related to every possible record, but if it is related, there will certainly be several blank fields in every row.
In this example, the table is for keeping a record of PLC wire connections that are attached to a common / stock relay. The relay has 10 possible connection points, but generally only four are used thus leaving 6 “place holders”. They might be used in the future, but unlikely. In addition different records will have different configuration of connection points.
So right now I have
Tbl_Relay
Relay_ID – PK - Autonumber
Equipment_Number – FK
Relay_Contact_1
Relay_Contact_2
Relay_Contact_3... to Relay_Contact_10
The data (wire numbers) in each Relay_Contact_# field is a alpha / numeric such DO:01.01.13.03A
I thought about flipping the context around and making the wire numbers the table and just assigning the Relay_Contact_#, but it is the wire numbers I am collecting... akin to making a table with telephone numbers so you don’t have blank fields for other telephone options like 1-800, business, residence, mobile, fax, etc.
The Equipment_Number is the unique number for each series of items; this number is connected to maintenance, additional equipment like motors, spare parts list, etc. Some Equipment_Numbers don’t have a relay, but will have a similar situation with other tables Tbl_Control_Wiring or Tbl_Button_Wiring where there are a number of options but the wires are only connected to a limited number of points.
Am I making this more complicated than it needs to be?
Cheers
Looking for some advice here; I have several tables that have a similar issue that I am not sure really is an issue. I just might be trying to over complicate it.
Each table has a primary key and then several “place holders” that may be used. The table(s) is normalized to the point where it may not be related to every possible record, but if it is related, there will certainly be several blank fields in every row.
In this example, the table is for keeping a record of PLC wire connections that are attached to a common / stock relay. The relay has 10 possible connection points, but generally only four are used thus leaving 6 “place holders”. They might be used in the future, but unlikely. In addition different records will have different configuration of connection points.
So right now I have
Tbl_Relay
Relay_ID – PK - Autonumber
Equipment_Number – FK
Relay_Contact_1
Relay_Contact_2
Relay_Contact_3... to Relay_Contact_10
The data (wire numbers) in each Relay_Contact_# field is a alpha / numeric such DO:01.01.13.03A
I thought about flipping the context around and making the wire numbers the table and just assigning the Relay_Contact_#, but it is the wire numbers I am collecting... akin to making a table with telephone numbers so you don’t have blank fields for other telephone options like 1-800, business, residence, mobile, fax, etc.
The Equipment_Number is the unique number for each series of items; this number is connected to maintenance, additional equipment like motors, spare parts list, etc. Some Equipment_Numbers don’t have a relay, but will have a similar situation with other tables Tbl_Control_Wiring or Tbl_Button_Wiring where there are a number of options but the wires are only connected to a limited number of points.
Am I making this more complicated than it needs to be?
Cheers