Hi guys,
Do you guys think this can be solved in one query?
I have 1 table:
| Name | Start Date | Value
----------------------------
| A | D1 | V1
| A | D2 |
| A | D3 |
| A | D5 | V3
| B | D9 | V4
...
I need to get something like this:
| Name | Start Date | Value
----------------------------
| A | D1 | V1
| A | D2 | V1
| A | D3 | V1
| A | D5 | V3
| B | D9 | V4
...
So what I need is to fill the empty cells with the last value from the last previous date that has value.
Am I making any sense?
Do you guys think this can be solved in one query?
I have 1 table:
| Name | Start Date | Value
----------------------------
| A | D1 | V1
| A | D2 |
| A | D3 |
| A | D5 | V3
| B | D9 | V4
...
I need to get something like this:
| Name | Start Date | Value
----------------------------
| A | D1 | V1
| A | D2 | V1
| A | D3 | V1
| A | D5 | V3
| B | D9 | V4
...
So what I need is to fill the empty cells with the last value from the last previous date that has value.
Am I making any sense?
Last edited: