Postgres Wybierz wartość maksymalną
SELECT * FROM payment
WHERE amount = (
SELECT
MAX(amount)
FROM
payment
);
experimental
SELECT * FROM payment
WHERE amount = (
SELECT
MAX(amount)
FROM
payment
);
SELECT id, first_name, last_name, grade
FROM student
WHERE grade = (SELECT MAX(grade) FROM student);