The code for total_customer_orders.sql is: SELECT customerName, COUNT(orderNumber) AS total FROM customers AS c INNER JOIN orders AS o ON c.customerNumber = o.customerNumber GROUP BY customerName ORDER BY total DESC;