I\'m trying to get orders from an orderview. In my view I do have some rows with exactly the same values, but I want to group these values on orderid and take the sum of the
I have used similar kind of table as yours. names would be different jsu to test it fast.
Please refer to the following query. Modify names as you require.
select ordid,customerid,articleid,SUM(cast(quantity as numeric)) quantity from test_stack group by ordid,customerid,articleid