Named Windows
The WINDOW clause can be used to explicitly name a window, for example to avoid repetitive or confusing expressions.
A named window can be used
-
in the
OVERclause to reference a window definition, e.g.OVER window_name -
as a base window of another named or inline (
OVER) window, if it is not a window with a frame (ROWSorRANGEclauses)NoteA window with a base windows cannot have
PARTITION BY, nor override the ordering (ORDER BY) of a base window.