Postgres выберите максимальное значение
SELECT * FROM payment
WHERE amount = (
SELECT
MAX(amount)
FROM
payment
);
experimental
SELECT * FROM payment
WHERE amount = (
SELECT
MAX(amount)
FROM
payment
);