I want to get the income sum of each day between a period BUT separated by payment type.
My query so far is:
SELECT event_date, sum(amount) FROM moneyflow WHERE `event_date` BETWEEN "2022-10-01" AND "2022-10-03"
GROUP BY event_date ORDER BY `event_date`
The results from it are:
but I would like them to be separated by payment type, How should I change the query to achieve the results in the way I want them?
for example
Thanks for your help