Суммарные итоги на основе предыдущей и текущей даты SQL - PullRequest
0 голосов
/ 05 августа 2020

У меня есть таблица расходов для каждой даты, как показано ниже

enter image description here

I need to calculate the expected amount and expected total amount based on the charges from the first table.

I have a payment table as below where there are 2 payments in the same month. In the example below, there are 2 payments of 6 each in October, so 12 need to be added to 17 to get 29. How do I achieve that? Thank you.

введите описание изображения здесь

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...