codice:
SELECT SUM(campo) AS somma FROM tabella