title: Can someone find the syntax error in this simple query?
body: <p>Please help me with this error.</p>
  
  <pre><code>SELECT StateProvince,STRING_AGG(AddressID, ',') WITHIN GROUP (ORDER BY AddressID)
  FROM [SalesLT].[Address] GROUP BY StateProvince;
  </code></pre>
  
  <p>I can't find the error in this but it says </p>
  
  <blockquote>
    <p>Incorrect syntax near '('.</p>
  </blockquote>