Hello everyone, I need assistance again in SQL Server. Please refer to my query and its output below:
Below also is the actual value of that table:
As you can see, there is a discrepancy in the previous day balance. Please help me to fix my query. Thank you so much.

Jefferson S. MottaPosted May 17, 2020, 6:30 PM
Jefferson S. MottaPosted May 18, 2020, 3:26 PM
Jes SiePosted May 17, 2020, 11:14 PM
Jes SiePosted May 17, 2020, 1:15 AM
Jefferson S. MottaPosted May 16, 2020, 12:49 PM
Jes SiePosted May 15, 2020, 7:25 PM
Jefferson S. MottaPosted May 15, 2020, 11:44 AM