Skip to content
Advertisement

How to break sequence

i have a table named sequence with a single column val and table looks like

i need to identify the range of numbers if there is a break in sequence and output like

Advertisement

Answer

Subtract an increasing sequence and you’ll get a constant for values that are in sequence. Then aggregate:

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement