title: MySql using DATEDIFF inside IF clause
body: <p>I'm trying to use DATEDIFF function inside an IF clause as the following:</p>
  
  <pre><code>select if('2006-04-01',DATEDIFF('2006-04-01','2007-04-01'),'y');
  </code></pre>
  
  <p>But the result I get is <code>BLOB</code>!!</p>
  
  <p>How Can I use <code>DATEDIFF</code> within an <code>IF</code> statement and get a meaningful result.</p>
  
  <p>Thank you all </p>