title: Sql server: limit string_agg result
body: <p>I have the following query (showing for each customer the list of users):</p>
  <pre><code>select cu.customer_id , STRING_AGG(u.first_name + ' ' + u.last_name , ',') as users   
  from customer_user cu join user u on cu.user_id = u.id   
  where ... 
  group by cu.customer_id
  </code></pre>
  <p>How can I limit the string_agg function to aggregate only 10 elements for each group?</p>