SQL Get ID ranges for multiple sections How do I get the lower- and upper-bound range(s) of the following data for each set of “1s”: