select numero_tessera, sum(totale_spesa), sum(numero_prodotti) from tuatabella group by numero_tessera;