mysql -u root -p espocrm

TABLES
- c_c_soft_conta_corrente
- c_c_movimentacao
- campaign


QUERYS

Todas:
select  ROUND(SUM(saldo), 2) AS saldo_total FROM c_c_soft_conta_corrente;

Sem gerente:
select  ROUND(SUM(saldo), 2) AS saldo_total FROM c_c_soft_conta_corrente WHERE name <> 'Gerente de Marketing';

Somente A.M
select  ROUND(SUM(saldo), 2) AS saldo_total FROM c_c_soft_conta_corrente WHERE name LIKE '%A.M%';

Somente A.O
select  ROUND(SUM(saldo), 2) AS saldo_total FROM c_c_soft_conta_corrente WHERE name LIKE '%A.O%';