I have a query to sum balances by Product below:
SELECT BCM_CORPORATION_NUMBER, BCM_PRODUCT
SUM(BCM_TOT_NEW_BAL) AS TOTAL_BALANCE
FROM BCM_IN
GROUP BY BCM_CORPORATION_NUMBER, BCM_PRODUCT
ORDER BY BCM_CORPORATION_NUMBER ASC;
Results:
Corp. PRODUCT. TOTAL_BALANCE
002030. VCLBUS. 3000
002030. VGOBUS. 1000
002030. VCL000. 4000
I want to combine the totals for Products VCLBUS & VGOBUS to display a total of 4000 together without the VCL000 product.
To look like this: Corp. PRODUCT. TOTAL_BALANCE 002030. VCLBUS/VGOBUS. 4000 002030. VCL000. 4000