I have a table with the data below:
SqNo Month Price
1 201801 5000
2 201804 5250
3 201807 5512.5
4 201810 5788.12
How can I get the data through SQL query as given below (I want to use the same price of previous month for the missing months)
SqNo Month Price
1 201801 5000
2 201802 5000
3 201803 5000
4 201804 5250
5 201805 5250
6 201806 5250
7 201807 5512.5
8 201808 5512.5
9 201809 5512.5
10 201810 5788.12
11 201811 5788.12
12 201812 5788.12