title: Detect time between two 24 hour time format?
body: <p>write simple this query:</p>
  <pre><code>select 'yes' where cast('18:00:00' as time) between cast('17:00:00' as time) and cast('06:00:00' as time)
  </code></pre>
  <br/>
  <p>the time <code>18:00:00</code>  between <code>17:00:00 PM</code> and <code>06:00:00 Am</code> but dont print yes message,how can i check that time ?</p>