How to group numbers into ranges?
588171Sep 19 2007 — edited Mar 14 2008Hi there,
I have table with a numerical ID field. The values in this column may or may not be consecutive. For example:
ID
--
1
2
4
5
6
8
9
10
11
12
Note, there are missing numbers. I need a query that will group the numbers into ranges like below:
LowerBound UpperBound
1 2
4 6
8 12
Any assistance appreciated! Thank you!