title: oracle sql error: ORA-00979: not a GROUP BY expression
body: <p>I have a table named <code>politics</code> like this:</p>
  
  <p><a href="https://i.stack.imgur.com/wUGdB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wUGdB.png" alt="enter image description here"></a></p>
  
  <p>I want to group by <code>WASDEPENDENT</code>. But when I ran </p>
  
  <pre><code>select * from politics group by WASDEPENDENT
  </code></pre>
  
  <p>it raised an error:</p>
  
  <pre><code>ORA-00979: not a GROUP BY expression
  00979. 00000 -  "not a GROUP BY expression"
  *Cause:    
  *Action:
  Error at Line: 15 Column: 8
  </code></pre>
  
  <p>How can I solve this?</p>