suppose you have a db where records are being added sequentially. you have a timestamp field recording the time of entry. you also have a field that could have a range of values, say 1 to 5.
That value might be 1 for a while, maybe 100 records, then it might change to 2 for a while, then to 5, then back to 1. Let us say that the changes are totally arbitrary and the number of records in any change might be 1, might be infinite.
Is it possible to group by these changes? I have an application where this would be useful. Note we're not grouping by the value of the field but by each time in the time sequence the value distinctly changes.
This is what happens when you're up at 4 in the morning..