What I meant by the BETWEEN was, if you have a zero-based table and need a unit-based solution, then the WHERE clause would need to include WHERE N BETWEEN 1 AND @DesiredInt. That would also allow you to use just a single table.
--Jeff Moden
Change is inevitable... Change for the better is not.