title: How to sum and divide in MySql
body: <p>Alright, so I have a user table and would like to get the max value for the user with the highest amount of points divided by a score. Below is a <em>rough</em> idea of what I'm looking for:</p>
  
  <pre><code>SELECT MAX(SUM(points)/SUM(score)) FROM users
  </code></pre>
  
  <p>I'm not interested in adding up both columns and dividing, rather I'm interested in dividing the points and score for each user and retrieve the highest value out of the lot.</p>