Cumulative cash flows
Suppose you're given the following table showing daily cash flows for a business:
Given the above table, write a SQL query to return the cumulative cash flow by day for the company.
For example, by day 3 your table should show 1900 (1000-300+1200) as the value.
You can view/query this table in an interactive SQL fiddle here.
Subscribe to premium account to see the solution.Get premium now