SELECT customer_id, SUM(amount_paid) FROM Payments GROUP BY customer_id ORDER BY SUM(amount_paid) DESC LIMIT 1
Berapa jumlah total maksimum yang dibayarkan oleh pelanggan?Sebutkan ID dan jumlah pelanggan.
CREATE TABLE Payments (customer_id VARCHAR, amount_paid INTEGER)