title: Forming An SQL Query That Selects The Max Difference Of Two Fields
body: <p>I'm trying to select a record with the most effective votes. Each record has an id, the number of upvotes (int) and the number of downvotes (int) in a MySQL database.</p>
  
  <p>I know basic update, select, insert queries but I'm unsure of how to form a query that looks something like:</p>
  
  <pre><code>SELECT * 
    FROM topics 
   WHERE MAX(topic.upvotes - topic.downvotes)
  </code></pre>