title: INTERVAL() function in mysql
body: <pre><code>SELECT INTERVAL (33, 5, 10, 15, 25, 27, 34);
  </code></pre>
  
  <p>This query will give the result as 5, because immediate highest value than 33 is found as 34 at index 5.</p>
  
  <pre><code>SELECT INTERVAL (33, 5, 10, 15, 25, 27, 33); 
  </code></pre>
  
  <p>This query is giving the result as 6.Is this a right answer ? Since there is no integer greater than 33 in the list , it is giving highest index+1 as result or any other logic i am missing?</p>
  
  <p>Please Help me out!
  Thanks</p>