0
Hello I have the following sql: `SELECT sum(value) the exits, (select sum(value) FROM entries WHERE id_type = 1 ) recipes
FROM lancamentos
WHERE id_type = 2
group by id_tipo
`
It’s working ok, I need it to bring me the difference between recipes - exits, in a total column.
being like this:
Inflows | Outflows| Total 1.000 | -450 | 550,00
I will test tonight, thank you very much for the answer!!!
– Victor Maziero
I got it with the reply of When do Valmor, thank you very much! Helped me a lot!
– Victor Maziero