title: IF statement t-sql
body: <p>have table with columns : <code>number1,number2,number3</code></p>
  
  <p>Have Query in procedure : <code>SELECT number1,number2,number3 FROM myTbl</code> </p>
  
  <p>, now want check </p>
  
  <pre><code>if number2 &lt; number1 and number1 &lt; number3 print 'OK'` 
  </code></pre>
  
  <p>How do it ? I cant write select for it</p>