Oppure
codice:
SELECT MAX(SUM(Quantita)) FROM Tabella group by codice