Skip to main content
Returns values from the row after the current row within the requested window. For more information on usage, please refer to Window Functions.

Syntax

Parameters

Example

In the example below, LEAD returns the nickname of the player one position behind (player_before) and one position ahead (player_after) in alphabetical order within each level. NULL is returned when no row exists at the given offset.

Rows: 4Execution time: 7.64ms