I have a table like below sample:
code | date | value
1000 2016-08-05 5000
1000 2016-12-27 8000
1000 2018-03-19 6000
1000 2018-06-02 6000
Now I need to generate sequential months like this:
code | date | value
1000 2016-08-05 5000
1000 2016-09-05 5000
1000 2016-10-05 5000
1000 2016-11-05 5000
1000 2016-12-27 8000
1000 2017-01-27 8000
1000 2017-02-27 8000
........
1000 2018-03-19 6000
1000 2018-04-19 6000
1000 ....
The sequence continues until it reaches the max date of a code. In this example the max date is 2018-06-02 for code 1000. How can I generate the month sequence? Any help would be much appreciated.