- Impact
- 16
Hi Guys,
I've got a database full of numbers that should be contiguous, but some aren't ie:
I need to get the ranges of this, ie.
I've had a look about but I can't find any implementations efficient enough for use on large amounts of data, any ideas what MySQL queries could achieve this?
I've got a database full of numbers that should be contiguous, but some aren't ie:
Code:
23
24
25
26
27
29
30
31
32
I need to get the ranges of this, ie.
Code:
24-27 29 30-32














