select o.cust_id, sum(( select sum(oi.item_price * oi.quantity) from OrderItems as oi where oi.order_num = o.order_num ))as total_ordered from Orders as o group by o.cust_id order by total_ordered DESC