Duda Mysql Add Previous Record


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.


asked by Ricardo Marín palacios 14.12.2018 в 20:42

0 answers