I have extracted details using group by on months. But unfortunately, if the data is not present in the months, no record is created for that month.
Please help me to create new records for each of the company where data range starts from 2019 April annd ends at 2020 February.
Company year month Quantity
A 2019 4 1
A 2019 5 12
A 2019 6 13
A 2019 11 23
A 2020 2 34
B 2019 8 32
B 2019 12 2
B 2020 2 32
Exactly in the below format. Any inputs can be a great help.
Company year month Quantity
A 2019 1 0
A 2019 2 0
A 2019 3 0
A 2019 4 0
A 2019 5 12
A 2019 6 13
A 2019 7 0
A 2019 8 0
A 2019 9 0
A 2019 10 0
A 2019 11 23
A 2019 12 0
A 2020 1 0
A 2020 2 34
B 2019 1 0
B 2019 2 0
B 2019 3 0
B 2019 4 0
B 2019 5 0
B 2019 6 0
B 2019 7 0
B 2019 8 32
B 2019 9 0
B 2019 10 0
B 2019 11 0
B 2019 12 2
B 2020 1 0
B 2020 2 32