r/SQL • u/IntelligentMirror646 • 31m ago
Discussion Does this table meet the normalization requirements (1NF, 2NF, and 3NF)?
I’m working on a database project for a metro system, and I’m not sure if my Train table satisfies 3NF.
I think Capacity depends on TrainModel rather than TrainID. If I enter different capacity values for trains of the same model, would that solve the problem, or would it still violate 3NF?
Should I remove Capacity from the table?
1
Upvotes
2
u/blueberrywalrus 9m ago
If capacity depends on train model and not Train ID then it needs to be split into a different table for 3NF.
Right now, it looks like capacity is specific to each Train ID which would make this table 3NF.
However, encoding train model into the serial number could be seen by some as a dependency.