title: Select statement MSSQL
body: <p>This is my function <strong>FirstDayInQtr</strong></p>
  
  <p>This is the sql query </p>
  
  <pre><code>SELECT @day =  DATEADD(qq, DATEDIFF(qq ,0, @InputDate),0)
  </code></pre>
  
  <p>who can explain this statement </p>