📅  最后修改于: 2022-03-11 15:05:05.884000             🧑  作者: Mango
SELECT
customer_id,
SUM (amount)
FROM
payment
GROUP BY
customer_id
HAVING
SUM (amount) > 200;Code language: SQL (Structured Query Language) (sql)