Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

Identify record sequences matching a predefined pattern in SQL Server

Language: Layout:
View schema
Execution time: 0,03 sec, rows selected: 8, rows affected: 10, absolute service time: 0,19 sec 
edit mode |  history
   Id Val
1 1 5
2 2 2
3 3 6
4 4 8
5 7 5
6 8 2
7 9 6
8 10 8