codice:
SELECT MAX(campo) FROM tabella;
SELECT SUM(campo) FROM tabella;