title: SQL : How to get the latest value of an unordered column
body: <p>I need to query my DB for the latest UUID (meaning the one that was inserted last). This value is generated by the application. So if I simply do..</p>
  
  <pre><code>select uuid from Run where &lt;some condition&gt;
  </code></pre>
  
  <p>then it returns multiple UUIDs. How do I get the latest one? There is an auto increment primary surrogate ID column on this table as well as Create Date, so I could just do...</p>
  
  <pre><code>select max(id),uuid from Run where
  </code></pre>
  
  <p>But this forces me to include that ID column but in my result set. Which I guess is not too bad but just wondering if there is an elegant way I could return just the UUID in the result set and still get the latest.</p>
  
  <p>I am using MySQL.</p>
  
  <p>Thanks.</p>