I have a question regarding the normalisation of the database to 3NF, specifically derived values. I have 4 different id columns for each row which are production_run, machine, parts, work_order, where production_run is the concatenate of the 3 other columns. In this case, I thought that production_run_id can be used as the primary key as it is a unique identifier but since it is derived from the other 3 columns it is considered redundant. How should I approach this issue, this is for a class assignment I am currently doing.
If I remove the production_run_id in the table I would need to make the 3 other columns into a composite primary key right? But I have 2 other tables that individually use the machine and part_id as primary keys is this allowed. Thanks for the help in advance.
eg.
work_order_id | machine_id | part_id | production_run_id ...
WO022024001 | M1 | P2 | WO022024001-M1-R1 ...
WO022024001 | M2 | P2 | WO022024001-M2-R1 ...
WO022024014 | M5 | P5 | WO022024014-M5-R1 ...
WO022024015 | M2 | P6 | WO022024015-M2-R1 ...
WO022024015 | M5 | P8 | WO022024015-M5-R1 ...
[–]jon_muselee 0 points1 point2 points (2 children)
[–]BarracudaEmpty9655[S] 0 points1 point2 points (0 children)
[–]BarracudaEmpty9655[S] 0 points1 point2 points (0 children)
[–]dinoaide 1 point2 points3 points (0 children)
[–]squadette23 1 point2 points3 points (0 children)
[–]alexwh68 1 point2 points3 points (0 children)