title: Ruby on Rails- Query Amount between two dates from console
body: <p>I want to query total amount (which is a column in all the records) and have an option to choose dates to get the sum of the amount between those dates.</p>
  
  <p>What is the best way to do that?</p>