select campo_da_raggruppare,sum(campo_da_sommare) as tot from tabella group by campo_da_raggruppare
Regole del Forum