We have table that has the columns dates,sales and item.
An item's price can be different at every sale, and we want to find the price of an item, averaged over its most recent 50 sales.
Is there a way to do this using analytical functions in Vertica?
For a popular item, all these 50 sales could be from this week. For another, we may need to have a 3 month window.
Can we know what these windows are, per item ?