Z
zekkk
Hello everybody,
Firstable, excuse me for my English. I have to build an application that
calculate the balance of a stock.
I have the choice with 2 tables design.
First possibility with 3 tables :
**********************
I do a table Product, a table Purchase and a table Sales. And to calculate
the balance, I calculate the purchases records minus sales records.
Second possibility with 2 tables
************************
I do a table Product and a table Stocks. The table Stocks contains a field
Purchase and a field Sales.
What is the best tables design. Could you give me advantages and
disadvantages for each design and when we used it.
Thank you in advance for your help and have a nice day
Fabrice
Firstable, excuse me for my English. I have to build an application that
calculate the balance of a stock.
I have the choice with 2 tables design.
First possibility with 3 tables :
**********************
I do a table Product, a table Purchase and a table Sales. And to calculate
the balance, I calculate the purchases records minus sales records.
Second possibility with 2 tables
************************
I do a table Product and a table Stocks. The table Stocks contains a field
Purchase and a field Sales.
What is the best tables design. Could you give me advantages and
disadvantages for each design and when we used it.
Thank you in advance for your help and have a nice day
Fabrice