I have a table in the database called Veiculo
and it has the following fields: placa
, renavam
, marca
, cor
and categoria
.
For placa
and renavam
everything is fine, since the data is unique.
My question is regarding the columns marca
, cor
and categoria
. Today I save everything in the Veiculo
table and I do not make a relationship with other tables. It is necessary and / or recommended, through "good practices", to create a table for marca
, another for cor
and another for categoria
and just reference its ID
in table Veiculo
? >
Does the database behave this way better by avoiding repeated information?