1
I have the tables :
Produto Departamento
========= ========
Id_Prod id_Departamento
Descricao Descricao
Produto_Departamento
=====================
id_Prod
Id_Departamento
Saldo
Having the following scenario, I would like your help to develop this consultation.
I would like to bring all products whose balance sum is = 0. Remembering that the product may be registered in several departments
It would not only give a sum of the balance and group by product?
– Jhonathan
Which database are you using? Pro in case of a more specific query, of course.
– user28595