MattBaldry
Self Taught, Learn from the Forums
- Local time
- Today, 09:52
- Joined
- Feb 5, 2019
- Messages
- 330
Hi all,
I am looking at reworking my MRP database to manage the stock numbers better. At the moment I have a TransactionType field which denotes the transaction type to either In or Out. The TransactionQuantity field is currently always a positive number. I have seen on other DBs that they have this field as a negative number with the Type is Out. I currently have a query to work out QuantityInStock and it needs to use the In/Out value to add or subtract the quantities to get the value.
Would my query be more efficient if the TransactionQuantity already had a minus number when it is an Out transaction? Would I then just need to run a Sum on this field to get my QIS?
~Matt
I am looking at reworking my MRP database to manage the stock numbers better. At the moment I have a TransactionType field which denotes the transaction type to either In or Out. The TransactionQuantity field is currently always a positive number. I have seen on other DBs that they have this field as a negative number with the Type is Out. I currently have a query to work out QuantityInStock and it needs to use the In/Out value to add or subtract the quantities to get the value.
Would my query be more efficient if the TransactionQuantity already had a minus number when it is an Out transaction? Would I then just need to run a Sum on this field to get my QIS?
~Matt