gunslingor
Registered User.
- Local time
- Yesterday, 23:16
- Joined
- Jan 13, 2009
- Messages
- 50
I have a table called "compensating measures" that has a primary key consisting of 3 fields: Patch ID, OS, vulnerability ID. All three fields comprise the key to guarantee logical duplication of data doesn't occur.
I also have a table called "cyber assets", which has one field called OS and a bunch of other device specific fields like location, room, model number, etc. Both of these OS fields have historically been enter-able without restriction, just a textbox essentially.
Now however, I want to make 100% certain that an OS in the "compensating measures" table cannot be entered unless it exists in the "cyber assets" table.
I tried to make the relationship between OS fields and it was indeterminate, which I think is bad but was not unexpected because neither OS field is a primary key.
So, I think I know what I need to do to keep things normalized and correct. I need to create a lookup table with only one primary key="OS"; then I link both tables to that OS table and both the "compensating measures" and "cyber assets" tables would be 1 to many. I think this is the correct way to deal with this, however, I'm concern about having to update this new lookup table.
If I want to add a new OS to either of the main tables, I would first have to add it to the lookup table correct? Is there a way around this?
I also have a table called "cyber assets", which has one field called OS and a bunch of other device specific fields like location, room, model number, etc. Both of these OS fields have historically been enter-able without restriction, just a textbox essentially.
Now however, I want to make 100% certain that an OS in the "compensating measures" table cannot be entered unless it exists in the "cyber assets" table.
I tried to make the relationship between OS fields and it was indeterminate, which I think is bad but was not unexpected because neither OS field is a primary key.
So, I think I know what I need to do to keep things normalized and correct. I need to create a lookup table with only one primary key="OS"; then I link both tables to that OS table and both the "compensating measures" and "cyber assets" tables would be 1 to many. I think this is the correct way to deal with this, however, I'm concern about having to update this new lookup table.
If I want to add a new OS to either of the main tables, I would first have to add it to the lookup table correct? Is there a way around this?