1
I have tables in my database: Orcamento
, Maquinas
, Veiculos
and Acessorios
.
I need to record the costs of each of them, for example each table will be recorded a daily cost
I create a table called Custo
or create a table for each 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 plus fields: idDono
(1-Budget, 2-Machine, 3-Vehicle and 4-Accessories).
I wanted to know if in this table if you have lots of data stored will not be slow to query than if I created 4 separate tables, or if it would be more organized with the 4 than with just one?
Cool, I’ll make a single table, Thank you
– Denilson Carlos