Image with part of the database in question
I have this table
id ¦ Follow
1 ¦ Route 1
2 ¦ Store 1
3 ¦ Store 2
4 ¦ end
5 ¦ Route 2
6 ¦ Store 3
7 ¦ Store 4
8 ¦ end
etc, etc
So, what I try to understand is how can I get only the rows starting from Route Number (i.e Route 2) until the first "end" is found? Routes are subject to change so it have to be from string "Route number" to the next "end" met.
The solution may be very simple but I have no clue where to start from, as I am quite new in this area and I haven't found anything relevant on SO. Please let me know if you want me to be more specific.
Thanks!