SELECT customer_id ,  sum(amount_paid) FROM Payments GROUP BY customer_id ORDER BY sum(amount_paid) DESC LIMIT 1
What is the maximum total amount paid by a customer? List the customer id and amount.
SELECT customer_id , sum ( amount_paid ) FROM Payments GROUP BY customer_id ORDER BY sum ( amount_paid ) DESC LIMIT 1
select customer_id , sum ( amount_paid ) from payments group by customer_id order by sum ( amount_paid ) desc limit value
What is the maximum total amount paid by a customer ? List the customer id and amount .