A couple comments on the SQL itself: using SELECT * outside of an EXISTS() clause or ad hoc query can cause bugs and confusion. You can bug-proof and self-document your code by specifying which columns you want returned.
BETWEEN is inclusive. So, unless want to includes those dates as well, you might need to specify another date or use +/-1.
In reply to Re: Difference between dates
by chacham
in thread Difference between dates
by htmanning
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |