MYSQL Add/Subtract only if ids match?

后端 未结 0 884
情书的邮戳
情书的邮戳 2021-01-16 15:37

Here is what I want to do:

SELECT
(SELECT SUM(reservedquantity) FROM reserved WHERE projectid=\'A\' GROUP BY referenceid) -
(SELECT SUM(reservedquantity) FROM         


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