帧,指定记录范围,如果只指定了开始,则开始记录到当前记录表示一帧,统计基于这个窗口的话,就是基于这个帧的范围数据进行统计。
窗口,指整个窗口(over partition)范围进行统计。
A window function call represents the application of an aggregate-like function over some portion of
the rows selected by a query.
Unlike non-window aggregate calls, this is not tied to grouping of the
selected rows into a single output row — each row remains separate in the query output.
However the window function has access to all the rows that would be part of the current row's group
according to the grouping specification (PARTITION BY list) of the window function call.
The syntax of a window function call is one of the following: