To find the total number of orders for each customer, you can use a SQL query as follows: SELECT customer_id, COUNT(order_id) AS total_orders FROM customer_orders GROUP BY customer_id;
The candidate's solution is correct and uses an optimal approach.
Evaluated at: 2022-11-18 00:16:13