codice:
SELECT MAX(campo) AS max FROM tabella