I want to query only numbers which are repeated 3 times consecutively like 1 here. But not 2 as it is not consecutive.
How can i achieve same in sql?