PostgreSQL - Window Functions in PostgreSQL
You want to calculate a moving average of sales amounts over the last 7 days including the current day, but your
sales table has multiple sales per day. Which window frame clause correctly computes this using RANGE?