I have a database with some values:
I need to calculate the difference between lines. For example:
ms_id | month | allocate | difference| ------|--