Does anybody know how to create a merchandise inventory database containing a query (or queries) that calculates weighted average cost? I have read Joe Celko's solution, but that doesn't really the way weighted average works.
I have tried weighted average (and even perpetual average) costing in another database (SQL Server) but I ended up using cursors. I know how to create some workarounds, but I am at the risk of suffering from data inconsistencies.
I was wondering if you guys can help me out with this.
Thanks a lot!
joe