I need help with a table design for on a DB involving piping, valves and fittings. The table has 5 fields and uses a combination of 4 fields to identify each valve and insualtion thickness to get the item price. It appears that so many fields are repeated data that I question if it is normalized.
I need the following fields to identify each valve
NPS (Pipe size eg: 1", 2", 3", 4", 6". 8", 10" etc - 16 sizes total)
Rating (Pound rating eg: 150#, 300#, 600#, 900#, 1500#, 2500#. - 6 values total)
Valve type (Gate Valve, Check, Butterfly, Control, Ball - 5 values total)
Insulation thickness (1", 1.5", 2", 3" - 4 values)
Price (variable $ amount)
The first four fields would be a combined PK.
The problem can be compared to buying jeans where there is a unique combination of waist size, inleg length, colour, style/fit to get the right item and then find the price.
In my case each item has a unique price, unlike jeans which have one price for all sizes in a particular style.
Thoughts? Suggestions?
I need the following fields to identify each valve
NPS (Pipe size eg: 1", 2", 3", 4", 6". 8", 10" etc - 16 sizes total)
Rating (Pound rating eg: 150#, 300#, 600#, 900#, 1500#, 2500#. - 6 values total)
Valve type (Gate Valve, Check, Butterfly, Control, Ball - 5 values total)
Insulation thickness (1", 1.5", 2", 3" - 4 values)
Price (variable $ amount)
Code:
NPS Rating Type Thick Price
1 150 Gate 1 23.50
2 150 Gate 1 31.25
3 150 Gate 1 49.78
........
8 150 Ball 1 54.65
10 150 Ball 1 62.32
.......
8 300 Ball 1 78.25
8 300 Ball 1.5 84.65
.......
The problem can be compared to buying jeans where there is a unique combination of waist size, inleg length, colour, style/fit to get the right item and then find the price.
In my case each item has a unique price, unlike jeans which have one price for all sizes in a particular style.
Thoughts? Suggestions?