How to count the sum of Invoices by last year using SQL in Rails?

前端 未结 0 1779
执念已碎
执念已碎 2020-12-13 20:13

I need to count all amount of invoices for last year. I do it using helper method but, as far as I know, there is better way using only one query to database with SQL functi

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