in reply to Re: Calculating the range between two numbers
in thread Calculating the range between two numbers

Yeah, but that leads to huge query strings if the numbers differ a lot. I'd write it as:
SELECT type FROM dog WHERE number >= 2 AND number <= 8
using placeholders for the two values.