Appreciate some guidance.
Apologize in advance, not a programmer, but, tasked with providing this data.
Can perform std joins and less complicated queries.
Not sure how to store or perform running total. Not sure of best method for gathering this data.
Thanks in advance for your input, awaria
--
Goal: Calc avg cost for item;
Tables: Item Master and Item Transaction
Item Master has field QtyonHand = 10 for item A
Item QOH
A 10
Item Trans most recent transactions;
Item Qty Cost Date
A 4 10.00 2/28/18
A 4 20.00 2/17/18
A 4 30.00 2/16/18
How to loop through trans table for most recent transactions, selecting the
cost for the 4 from 2/28/18, the cost for 4 from 2/27/18 and then cost for
just 2 out of 4 from 2/26/18 to arrive at an avg cost of $18.00 for the Item Master table's QOH of 10?
Apologize in advance, not a programmer, but, tasked with providing this data.
Can perform std joins and less complicated queries.
Not sure how to store or perform running total. Not sure of best method for gathering this data.
Thanks in advance for your input, awaria
--
Goal: Calc avg cost for item;
Tables: Item Master and Item Transaction
Item Master has field QtyonHand = 10 for item A
Item QOH
A 10
Item Trans most recent transactions;
Item Qty Cost Date
A 4 10.00 2/28/18
A 4 20.00 2/17/18
A 4 30.00 2/16/18
How to loop through trans table for most recent transactions, selecting the
cost for the 4 from 2/28/18, the cost for 4 from 2/27/18 and then cost for
just 2 out of 4 from 2/26/18 to arrive at an avg cost of $18.00 for the Item Master table's QOH of 10?