SUM() e raggruppamento.

select *,
SUM(qta) as tot
FROM tabella
GROUP BY nome