I have 2 columns
date number
---- ------
1 3
2 NULL
3 5
4 NULL
5 NULL
6 2
.......
I need to replace the NULL values with new values takes on the value from the last known value in the previous date in the date column eg: date=2 number = 3, date 4 and 5 number = 5 and 5. The NULL values appear randomly.