Is there better way to subtract of sum fields without summing again in postgresql

后端 未结 0 1662
慢半拍i
慢半拍i 2021-02-06 15:09

Let\'s say Point table looks like this,

point_table
- id (pk)
- amount (Integer)
- used_amount (Integer)

And I write sql like below



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