Introduction
Window frame specification lets you control which rows are included when calculating values over a group of rows in a table.
When you want to calculate running totals in a sales report.
When you need to find the average of the last 3 days' temperatures for each day.
When you want to compare each row's value with the previous two rows in a list.
When you want to calculate a moving average or sum over a specific range of rows.