How to fill sparse data with the previous non-empty value in SQL | Hacker News Reader