79566339

Date: 2025-04-10 10:11:59
Score: 0.5
Natty:
Report link

The correct answer would be to put a case statement inside the first_value, like this:

select id, date, value, first_value(case where value is not null then value end) ignore nulls over (order by date desc) as value2 from table
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Wix