I have a table with 2 columns clmAge
and clmPrice
like
Age Price
1 , 100
2 , 100
3 , 150
4 , 150
5 , 100
6 , 100
7 , 100
Prices might be the same for different ages, and I need the min and max age that are for all consecutive ages with the same price. I need to group my data so my results are like:
1-2 , 100
3-4 , 150
5-7 , 100