MySQL: Retrieve data from Parent Table if it's Child Table's sum of QtyIn is greater than the sum of QtyOut

前端 未结 0 463
春和景丽
春和景丽 2020-11-27 10:52

Here\'s my scenario:

Table A     Table B 
IDa = 1     IDb = 1 | IDa = 1 | QtyIn = 2 | QtyOut = 0
IDa = 2     IDb = 2 | IDa = 1 | QTyIn = 0 | QtyOut = 1 
              


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题