Given a table with columns representing a start and end:
Start End
01/01/2016 03/01/2016
01/01/2016 06/01/2016
I'm trying to build a query that can recognize that the distinct set of ranges is the following:
[01/01/2016, 03/01/2016)
[03/01/2016, 06/01/2016)
What is this concept called and how can I achieve it with SQL ?