FIRST_VALUE
This section contains reference documentation for the FIRST_VALUE window function.
Signature
FIRST_VALUE(expression) [IGNORE NULLS | RESPECT NULLS] OVER ()Example
SELECT playerName,
yearID,
numberOfGames,
FIRST_VALUE(numberOfGames) OVER (
PARTITION BY playerName
ORDER BY yearID ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING
)
FROM baseballStats;playerName
yearID
numberOfGames
EXPR$3
10
10
10
120
120
30
30
30
30
Last updated
Was this helpful?

