I have a table similar to to one like this below.I would like to display the sum of the mrp_qty rows grouped against the mrp_type column.However I would like to be able to group mrp_type rows with similar names.For example below I would like to combine the rows with mrp_type values SUPPLYP and SUPPLY (It does not need to by dynamic, the use case below is enough).mrp_dataset mrp_part mrp_nbr mrp_line mrp_qty mrp_typewo_mstr 946 0320 6793 5.0000000000 SUPPLYPwo_mstr 946 0324 6796 16.0000000000 SUPPLYPwo_mstr 946 1024 6704 6.0000000000 SUPPLYwod_det 946 0507 6847 8.0000000000 DEMANDwod_det 946 0515 6865 2.0000000000 DEMAND
I needed to output the sum of the MRP_QTY column, grouped by the MRP_TYPE, so I used the following codeSELECT mrp_type ,SUM(mrp_qty) as qtyFROM (*My table name*)GROUP BY mrp_type
MRP_TYPE QtySUPPLYP 21.00SUPPY 6.00DEMAND 10.00
Is it possible to further group the results like this?MRP_TYPE QtySUPPY Comb. 27.00DEMAND 10.00
Thanks very much for your help