tente assim: ... select tipo_oper, sum(coalesce(valor,0)) total ...

Responder a