I happened to ask this question a couple of weeks ago, to which I received prompt responses that worked for me.
However, I just figured out that there is a bug with the answer.
Although the answer did work for me initially and I did accept/upvote the answer, is it OK to downvote and unaccept it after a period of inactivity even though this stems from a lack of rigorous testing on my part?
x BETWEEN y AND z
is not treated asx >= y AND x <= z
(e.g. that treat it asx >= MIN(y, z) AND z <= MAX(y, z)
)?