title: SQL Server - how to convert yyyy and m to date
body: <p>I have two columns : </p>
  
  <ul>
  <li>year - <strong>YYYY</strong> - data type <code>int</code></li>
  <li>month - <strong>M</strong> - data type <code>int</code></li>
  </ul>
  
  <p><img src="https://i.stack.imgur.com/FWgXX.jpg" alt="example for the results"></p>
  
  <p>My question is how to convert these columns to date format, assuming as day the first day of month?</p>