How would I query for values near a certain number.
I.E. suppose the database had a table with one column, and int, and that table was populated with every number from 1 – 1000.
How would I write a query so that if I had 100 it would return:
96, 97, 98, 99, 100, 101, 102, 103, 104
It would give the result in your example but somehow I have the feeling this is not the general solution you are looking for.