I am currently working with a non-relational Mysql database. I need a way, create a stored procedure, that this can add the previous record and subtract by another field.
Create an Excel with the formula, to exemplify the case.
I currently have two tables called Resolutions and Withholdings which I know what my first record is and then the resolutions come. Complete Excel attachment of the formula.
Records have primary key.
Everything I've searched on google does not come close to what I need to program.