title: Insert IF value X has increased in an another table
body: <p>OK. So:
  I have an app that reads value X from a realtime table and then it inserts the info from that table to a record table, and users of that app can check their what is their record high value X. 
  I'm trying to make it so that it will only do that IF player's value X has increased in the realtime table. 
  Currently it is like this:</p>
  
  <pre><code> - Player's value X is currently 10 in the real time table
     - It gets inserted into the record table 
   - Player's value X is now 8 the real time table
     - It gets inserted into the record table 
   - Player's value X is now 7 the real time table
     - It gets inserted into the record table
  </code></pre>
  
  <p>So now, the record table has inserted every value he has had. I'd like to make it so that it would only do that if Value is higher then the highest value that currently is in the record table:</p>
  
  <pre><code> - Player's value X is currently 10 in the real time table
     - It gets inserted into the record table 
   - Player's value X is now 8 the real time table
     - It gets ignored cause recordtable.value &gt; realtimetable.value
   - Player's value X is now 7 the real time table
     - It gets ignored cause recordtable.value &gt; realtimetable.value
  </code></pre>
  
  <p>This is to avoid unneccesary lines in the table. Is this even possible to be done with just mysql? Of course it can be done in python, but I have not sufficient skills in that, so this is my only chance atm.</p>