I have this table in MySQL
source amount for_date
1 100 2019-01-15
1 200 2019-01-16
1 200 2019-02-16
2 350 2019-02-14
SELECT SUM(amount) amountSum FROM Flow WHERE source='1' GROUP BY month(for_date)
This MySQL query work, but I want to get only the current month, not the month before.