title: SQL - How do split data by date into different monthly 'pots'?
body: <p>New to sql and having trouble figuring the following, though probably straightforward for more experienced users. I have a table of outstanding monies which I need to divide up into monthly pots; the table has the following columns:</p>
  
  <pre><code>Name, amount_due, date_due.
  </code></pre>
  
  <p>I need to divide the info by 'date_due' into 5 different monthly pots, the current month, last month, 2 months old, 3 months old, > 3 months old. </p>