I have the following example:
COLUMN
19
20
26
28
29
32
33
34
I need to count the rows based on pairs, 19-20, 28-29, 32-33. I'm having difficulty to check if a pair is already counted or not, any sugestions ? The result should be something like this:
CNT
2
1
2
2
1
Also, if possible, can i do it in both languages? pl/sql and sql server