SELECT
	c.record_number
	,c.First_Name
	,c.Last_Name
	,c.Street
	,c.City
	,s.Name AS State
	,c.Postal_Code
	,c.Email_Address
	,c.Phone
	,c.Username
	,SUM(o.Grand_Total) AS Total_Spent
	,COUNT(o.record_number) AS `# Orders`
FROM
	Customers c
LEFT JOIN
	Orders o
ON
	c.record_number = o.Ordered_by
LEFT JOIN
	States s
ON
	c.State_or_Province = s.record_number