Suppose I have this table
Id Order Value
------------------
aa 0 'cat'
ba 1 'dog'
bb 2 'yuk'
dc 3 'gen'
ca 4 'cow'
c1 5 'owl'
b0 7 'ant'
h9 8 'fly'
t4 9 'bee'
g2 10 'fox'
ea 11 'rat'
fa 12 'pig'
gu 13 'pig'
co 14 'pig'
fo 15 'pig'
ou 16 'pig'
eo 17 'pig'
ii 18 'pig'
What is the query in order to obtain:
fa 12 'pig'
Like you can see, the next rows after 12 till 18. All these rows have a pig
in the Value
column.
How determine the row where the repetition began?
Thanks