Window Name Clause

Defines a named window that specifies window partition and order clauses for an analytic function. This window is specified in the function's OVER clause. Named windows can be useful when you write queries that invoke multiple analytic functions with similar OVER clauses—for example, they use the same partition (PARTITION BY) clauses.

Syntax

WINDOW window‑name AS ( window-partition-clause [window-order-clause] )

Parameters

WINDOW window‑name Specifies the window name. All window names must be unique within the same query.
window‑partition‑clause [window‑order‑clause]

Clauses to invoke when an OVER clause references this window.

If the window definition omits a window order clause, the OVER clause can specify its own order clause.

Requirements

Examples

See Named  Windows in Analyzing Data.

See Also

Analytic Functions