Skip to content
RED SAGSkills
medium10 pts · first answer countswindow-functionssqlmoving-average

A date-based 7-day frame

In PostgreSQL 11+, what does this frame include for a row dated 10 June?

SUM(amount) OVER (ORDER BY sale_date
                  RANGE BETWEEN INTERVAL '6 days' PRECEDING AND CURRENT ROW)
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions