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. MottaRank #207 · 11.7K reputationPosted May 17, 2020, 2:30 PM EDT
Jefferson S. MottaRank #207 · 11.7K reputationPosted May 15, 2020, 7:44 AM EDT
Jes SieRank #1,285 · 1.3K reputationPosted May 15, 2020, 3:25 PM EDT
Jefferson S. MottaRank #207 · 11.7K reputationPosted May 16, 2020, 8:49 AM EDT
Jes SieRank #1,285 · 1.3K reputationPosted May 16, 2020, 9:15 PM EDT
Jes SieRank #1,285 · 1.3K reputationPosted May 17, 2020, 7:14 PM EDT
Jefferson S. MottaRank #207 · 11.7K reputationPosted May 18, 2020, 11:26 AM EDT