select "orderfact".status AS "orderfact_status", 0 AS "min", SUM("orderfact".totalprice) AS "orderfact_totalprice" from PUBLIC.orderfact "orderfact" where "orderfact".status='Shipped' group by "orderfact".status, 0 order by "orderfact_totalprice", "orderfact_status", "min"