$ 0 0 Based on your narration you might not need recursion, just a modification of your query: SUM(a+b-c) OVER (ORDER BY week ROWS UNBOUNDED PRECEDING AS Inventory Dieter
Based on your narration you might not need recursion, just a modification of your query:
Dieter