title: sql : check min and max range values with database min and max range values
body: <p>Guys I have an SQL table with min and max range column. Now i want to check the if my new min and max values are already ranges between the database records or not.</p>
  
  <p>Ex.  </p>
  
  <pre><code>    ID Title   Min     Max
       1   A    5001    10000
       2   B    15001   20000
  </code></pre>
  
  <p>Now the case is that the new range should not fall within the records as it should be either less than of <code>5000 range or &gt;10000 and &lt;15000</code> for example.
  Please suggest the query.</p>