Código SQL [-] Select sum (cantidad) from tabla where codigo = a
Select sum (cantidad) from tabla where codigo = a