,sum(sales) over(order by year_order asc, month_order asc rows between 1 preceding and 1 following) as rolling_sum ,avg(sales) over(order by year_order asc, month ...
However, if a significant amount of time appears, I believe it is good to know that. Just keep in mind that the amount of time is not accurate, it is lower than the real amount of time select ...