PostgreSQL - Window Functions in PostgreSQL
You want to calculate a moving average of sales amounts over the last 3 days including the current day, using
sales(date, amount). Which window frame clause correctly achieves this?