QueryStash

QueryStash

Calculate Moving Average using Window Functions

Window functions make it very easy to calculate a moving average across a time series dataset.

We can use the ORDER BY date field and ROWS BETWEEN to define our moving average window.

Public
stats

QueryStash

Created: Sep 1st 2020

QueryStash

QueryStash

Made with ❤️ by @Yekalb

© 2024 Query Stash. All rights reserved

TwitterFacebookEmail

Resources

BlogPricingYour First QuerySearch Your Stash

Stay up to date

Terms of ServicePrivacy Policy