How can I fill the null values with the values below these null values?
Example, I have a table like this:
Mat Name 123 Jerry Null Mary Null Sam 45
I think you mean
select name, max(value) OVER(ORDER BY name ROWS BETWEEN 1 PRECEDING AND 1 FOLLOWING) as value