title: Select * with one Group By Column in SQL
body: <p>I want to <code>select *</code> from a table and group by only one column. I am new to SQL, so a basic questions. My query looks like this.</p>
  
  <pre><code>Select top 10
      [DocumentClass], [DocumentUID]
      ,[DocumentClassification]
      ,[DocumentNumber]
      ,[Revision]
      ,[Description]
      ,[Owner]
  from 
      Table
  Group BY 
      [DocumentClass]
  </code></pre>
  
  <p>Error I am getting:</p>
  
  <blockquote>
    <p>Column 'DocumentUID' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.</p>
  </blockquote>
  
  <p>Please advise. Thanks</p>