I have tables in my database: Orcamento
, Maquinas
, Veiculos
and Acessorios
.
I need to record the costs of each of them, for example to each table will be recorded a cost daily
I create a table called Custo
or create a table for each one for example Custo_Orcamento
, Custo_Maquina
, Custo_Veiculo
, Custo_Acessorios
?
Each of the 4 tables will have the following fields:
idCusto
, dataCadastro
, idProduto
, qtd
, vlUnitario
I was thinking of making a single table called Custo
and with the same fields more fields: idDono
(1-Budget, 2-Machine, 3-Vehicle and 4-Accessory).
I would like to know if in this single table if I have too much data stored it will not be slow to query than if I were to create 4 separate tables, or would I be more organized with 4 than with just one?