title: SQL code not working properly. Output keeps changing (Varying)
body: <pre><code>Select * from 
  (SELECT * ,   
      (ROW_NUMBER() OVER(PARTITION BY age) ) as rn FROM `usr`    
  ORDER BY  sname ASC ) temp 
  where (`rn` = 2) and (location=&quot;Sz&quot;)
  </code></pre>
  <p>Hi,
  when I test this code in phpmyadmin, it returns different values each time run.</p>