Not sure if this is what your looking for, but here is an example. I'm pretty new to SQL, so I'm sure there is a better way.
select o_cust as 'Customer', COUNT(o.ord_number) as 'Number Of Orders', MAX(o.t_miles) as 'Total Miles' from order as o where o.printed is NULL group by o.cust order by o.cust