Assume there is ID and Value in a table and we are to put numbers to the runs of rows that have consecutive id\'s and the same value.
Example table:
id |