title: How to get column values in one comma separated value
body: <p>I have a table which contains rows like below</p>
  
  <pre><code>ID  User      Department
  1   User1     Admin
  2   User1     Accounts
  3   User2     Finance
  4   User3     Sales
  5   User3     Finance
  </code></pre>
  
  <p>I need a select query which results following format</p>
  
  <pre><code>ID  User      Department
  1   User1     Admin,Accounts
  2   User2     Finance
  3   User3     Sales, Finance
  </code></pre>