Rolling seven-row frame.
Section: Frame clause cheatsheet
Last 7 rows
sql
sql
ROWS BETWEEN 6 PRECEDING AND CURRENT ROWExplanation
A classic moving window for row-based smoothing.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Frame clause cheatsheet