'how i can check if there is a repetition of the same results in a table?

I have read a few similar questions on counting consecutive rows, but none of them gave me a clear answer. I hope someone could give me some help with my problem. I have the following table data: ID TEST_VALUES 1 A 2 B 3 C 4 C 5 C 6 C 7 A 8 D 9 D 10 D 11 B 12 C 13 C 14 C 15 C

now I want to find if there three consecutive rows with the same value how i can do it ?



Solution 1:[1]

I have read a few similar questions on counting consecutive rows, but none of them gave me a clear answer. I hope someone could give me some help with my problem. I have the following table data:

ID       TEST_VALUES
 1       A
 2       B
 3       C
 4       C
 5       C
 6       C
 7       A
 8       D
 9       D
 10      D
 11      B
 12      C
 13      C
 14      C
 15      C

Now I want to find three consecutive rows with the same value.

How can I do it?

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Tonechas