Good Day everyone, i Hope someone will help me. I have 1 table and i want to create a mysql query that would add a column to the last that will calculate the running balance of deposited amount and cheque issued amount (deposited amount - cheque issued amount) = RUNNING BALANCE
tbl
-------------------------------------------------------------------------
| Date_Deposited | deposited_amount | Date_Cheque_Issued | issued_amount |
-------------------------------------------------------------------------
May 16, 2019 1,000.00 May 16, 2019 500.00
May 17, 2019 100.00
May 18 2019 1,000.00
i am expecting to create this kind of table with BALANCE column in the last
------------------------------------------------------------------------------
| Date_Deposited | deposited_amount | Date_Cheque_Issued | issued_amount | Bal |
-------------------------------------------------------------------------
May 16, 2019 1,000.00 May 16, 2019 500.00 500.00
May 17, 2019 100.00 400.00
May 18 2019 1,000.00 1,400.00