LAST_VALUE
This section contains reference documentation for the LAST_VALUE window function.
Signature
LAST_VALUE(expression) [IGNORE NULLS | RESPECT NULLS] OVER ()Example 1
SELECT playerName,
yearID,
numberOfGames,
LAST_VALUE(numberOfGames) OVER (
PARTITION BY playerName
ORDER BY yearID ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING
)
FROM baseballStats;playerName
yearID
numberOfGames
EXPR$3
12
12
12
124
124
15
15
15
15
Example 2
ts
reading
imputedReading
Last updated
Was this helpful?

