You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
select
|
|
stocksymbol,
|
|
coalesce(avg(price) over
|
|
(partition by stocksymbol order by time rows between 4 preceding AND CURRENT row), price) as rollingAvg
|
|
from trade10m; |