Use group by inside subquery
|
mysql version |
1 |
5.7.12-log |
|
monthname |
id |
month |
year |
income |
subincome |
ssubincome |
amount |
receipt_ids |
progressive_total |
cumulative_sum |
1 |
February |
288 |
2 |
2017 |
Taxes |
Garbage tax |
NULL |
300 |
288 |
0 |
300 |
2 |
September |
301 |
9 |
2017 |
Grants from government |
Special Grants |
Matching grant |
4000 |
301 |
300 |
4300 |
3 |
December |
302 |
12 |
2017 |
Grants from government |
General Grants |
Grants in Lieu of Octroi |
236 |
302 |
4300 |
4536 |
4 |
December |
304 |
12 |
2017 |
Taxes |
Hoarding tax |
NULL |
445 |
304 |
4536 |
4981 |
5 |
December |
306 |
12 |
2017 |
Taxes,Taxes,Taxes |
Light tax |
Matching grant |
837 |
303,305,306 |
4981 |
5818 |
|
λ
.NET NoSQL database for rapid development
|