SELECT customer_id, SUM(total_amount) AS total_spent FROM orders GROUP BY customer_id ORDER BY total_spent DESC LIMIT 1;
SELECT customer_id, SUM(total_amount) AS total_spent FROM orders GROUP BY customer_id ORDER BY total_spent DESC LIMIT 1;
Creo contenido frecuentemente para poder ayudarte, adicional, ofrezco cursos y asesorías personalizadas.
Copyright © 2022 ASK Project