title: select according to ranking formula
body: <p>I have a table populated with user-submitted links which have been voted on by other users. The table has a column <code>votes</code> as well as a column <code>date</code> in the format <code>2013-05-12 11:52:55</code>. I now want to select the highest ranking links/rows by using the following formula: (taken from <a href="https://meta.stackexchange.com/questions/11602/what-formula-should-be-used-to-determine-hot-questions">here</a>)</p>
  
  <pre><code>(p - 1) / (t + 2)^1.5
  p = votes (points) from users
  t = time since submission in hours
  </code></pre>
  
  <p>Obviously selecting by votes alone would be easy (with <code>select by votes desc</code>), but how do I implement the above formula in mysql?</p>
  
  <p>TIA!</p>