Hi Jeremy,<div><br></div><div>I'm not sure this solution has been given yet but this is what we use all the time</div><div><br></div><div>WHERE (START_FIELD < END_RANGE) AND (END_FIELD > START_RANGE)</div><div><br>
</div><div>This will select all records who's START_FIELD and END_FIELD somehow intersect the START_RANGE to END_RANGE. There are six cases that we are accounting for. Four we want and two we don't.</div><div><br>
</div><div>SF < SR and EF < SR = FAIL</div><div>SF < SR and EF > SR = PASS</div><div>SF > SR and EF < ER = PASS</div><div>SF < ER and EF > ER = PASS</div><div>SF > ER and EF > ER = FAIL</div>
<div>SF < SR and EF > ER = PASS</div><div><br></div><div>The two fails are when the data does not intersect at all, the rest all pass.</div><div><br></div><div>Hope that helps.</div><div><br></div><div>Cheers,</div>
<div><br></div><div>Nick Barrett<br></div>