I want to generate ascending series for each Survey_ID based on the chainage sequence. For example, the number of records in the first Survey_ID is 8 and its chainage starts with 23 and ends with 93. So in the Series field, the sequence is automatically generated from 1,2,3… to 8. Similarly, in the second Survey_ID, there are 10 records with the chainage starting at 10 and ending with 100 so the Series should be 1,2,3,…,10 following the chainage sequence.

this is description of the attribute table that i had posted
