Need to return two datasets with two different locations
I have a table that keeps track of transactions.
The table is configured as:
transactions:
id, account_id, budget_id, points, type
I need to return each budget point sum where type = 'alloc' and point sum where type = 'issue'
I know how to do each, but not both in the same request.
expected result set:
budget_id allocated issued
434 200000 100
242 100000 5020
621 45000 3940
+3
source to share
2 answers