Hitungan SQL Max
SELECT max(MY_COLUMN) FROM my_table;
SELECT MY_ID, max(MY_COLUMN) FROM my_table GROUP BY ID; -- Max by MY_ID
VasteMonde
SELECT max(MY_COLUMN) FROM my_table;
SELECT MY_ID, max(MY_COLUMN) FROM my_table GROUP BY ID; -- Max by MY_ID
● SELECT first-name, MAX(salary)
FROM department d LEFT OUTER JOIN employee e ON (d.department_id = e.department_id)
GROUP BY department_id;