select "products".productline AS "products_line", SUM(Round(orderfact.totalprice/1000,1)) AS "orderfact_totalprice/1000" from PUBLIC.orderfact "orderfact", PUBLIC.products "products" where "orderfact".productcode="products".productcode group by "products".productline order by "products_line"