Created a table as below in sap hana and inserted some records
date_start | date_end |
---|---|
2014-03-05 | 2014-04-10 |
2014-05-01 | 2014-06-05 |
2014-07-10 | 2014-08-15 |
2014-08-16 | 2014-08-20 |
Need output for the missing date ranges for above records
date_start | date_end |
---|---|
2014-01-01 | 2014-03-04 |
2014-04-11 | 2014-04-30 |
2014-06-06 | 2014-07-09 |
2014-08-16 | 2014-12-31 |
saw a similar requirement in mysql here
Mysql Find missing date ranges
Regards Prasad