3
I’m having trouble performing an operation using Mysql, I don’t even know if it is possible to do what I want.
I have a control_de_stock table, in this table I have all the operations that are performed with products.
In controle_de_stock I have a column called tipMovimentacao that is 1 for input and 0 for output; what I want to do is this:
select * sum(quantidade) from controle_de_estoque where tipoMovimentacao = 0 MENOS select * sum(quantidade) from controle_de_estoque where tipoMovimentacao = 0
that is, I want to subtract from each other everything I try from the mistake.
Someone knows what I can do?
Thank you.
go from the way it is
– Marco Souza