title: How do I group DATE field by YEAR-MM in SQL Server?
body: <p>I have a date field in a query and I do want to get GROUP BY report like this:</p>
  
  <pre><code>DATE    COUNT
  2010-01  10
  2010-02  2
  ...
  2010-12  24
  2012-13  34
  </code></pre>
  
  <p>What is the proper syntax to obtain this on SQL Server?</p>