title: All years and months between 2 dates SQL
body: <p>I have a little question I have a table called project that looks like this:</p>
  
  <pre><code>---------------------------------------
   ProjectId  | StartDate   | EndDate   |
  ---------------------------------------
       1      | 01/01/2015  | 31/12/2017|
  </code></pre>
  
  <p>Is it posible to get all months and years between those dates like this:</p>
  
  <pre><code>--------------------
  | Month   |   Year  |
  --------------------
      1     |   2015  |
      2     |   2015  |
      3     |   2015  |
      4     |   2015  |
      5     |   2015  |
      6     |   2015  |
      7     |   2015  |
      8     |   2015  |
      9     |   2015  |
      10    |   2015  |
      11    |   2015  |
      12    |   2015  |
      1     |   2016  |
      2     |   2016  |
      3     |   2016  |
      4     |   2016  |
      .     |     .   |
      .     |     .   |
      .     |     .   |
      12    |   2017  |
  </code></pre>