select customer_code, min(invoice_date) as inv_date from sh_transaction group by customer_code order by inv_date desc