S
SF
Hi,
I want to setup an inventory dabase and I was not sure what structure to
adopt. Below are two options, hope that someone would advice
Option 1
I just add another typTransactionType that will list all type of transaction
eg Sales,Purchase, Return
tblTransaction
TransactionID Long PK
TransactionDate Date/Time
CustomerID Number
TransactionTypeID Number
tblTransactionDetails
DetailsID
TransactionID Foreign key
ProductID Number
Qty
Unit
UnitPrice
Option 2
I need to set up two tables for Purchase, Sales, Return etc...
tblPurchase
TransactionID Long PK
TransactionDate Date/Time
SupplierID Number
tblPurchaseDetails
DetailsID
TransactionID Foreign key
ProductID Number
Qty
Unit
UnitPrice
tblSale
TransactionID Long PK
TransactionDate Date/Time
CustomerID Number
TransactionTypeID Number
tblSaleDetails
DetailsID
TransactionID Foreign key
ProductID Number
Qty
Unit
UnitPrice
I want to setup an inventory dabase and I was not sure what structure to
adopt. Below are two options, hope that someone would advice
Option 1
I just add another typTransactionType that will list all type of transaction
eg Sales,Purchase, Return
tblTransaction
TransactionID Long PK
TransactionDate Date/Time
CustomerID Number
TransactionTypeID Number
tblTransactionDetails
DetailsID
TransactionID Foreign key
ProductID Number
Qty
Unit
UnitPrice
Option 2
I need to set up two tables for Purchase, Sales, Return etc...
tblPurchase
TransactionID Long PK
TransactionDate Date/Time
SupplierID Number
tblPurchaseDetails
DetailsID
TransactionID Foreign key
ProductID Number
Qty
Unit
UnitPrice
tblSale
TransactionID Long PK
TransactionDate Date/Time
CustomerID Number
TransactionTypeID Number
tblSaleDetails
DetailsID
TransactionID Foreign key
ProductID Number
Qty
Unit
UnitPrice