I'm trying to create a new total sum row for every state.
Sample table:
| State | Item | Amount
A X 100
B Y 200
A Z 100
B X 150
Result:
| State | Item | Amount
A X 100
A Z 100
Total A 200
B Y 200
B X 150
Total B 350
Is there SQL query that I can use to execute that table