I try to create a Redshift / Postgres SQL Query, which calculates a virtual cumulative wallet amount on a daily base. There are deposits into this wallet and spendings out of th