Navigation
First value
Returns the value of a variable for the first row in a given analytic window. –> learn more
FIRST_VALUE(@variable[ @ignore_null NULLS])
Return type
dynamic (input-dependent)
Parameters
Lag
Returns the value of a variable on a preceding row within the analytic window –> learn more
LAG(@variable, @literal[, @default_value])
Return type
dynamic (input-dependent)
Parameters
Last value
Returns the value of a variable for the last row in a given analytic window. –> learn more
LAST_VALUE(@variable[ @ignore_null NULLS])
Return type
dynamic (input-dependent)
Parameters
Lead
Returns the value of a variable on a subsequent row within the analytic window –> learn more
LEAD(@variable, @literal[, @default_value])
Return type
dynamic (input-dependent)
Parameters
Nth value
Returns the value at the Nth row of a given window frame. –> learn more
NTH_VALUE(@variable, @literal[ @ignore_null NULLS])
Return type
dynamic (input-dependent)
Parameters
Percentile (continuous)
Computes the specified percentile value for a variable within an ordered partition, with linear interpolation. –> learn more
PERCENTILE_CONT(@variable, @literal[ @ignore_null NULLS])
Return type
float
Parameters
Percentile (discrete)
Computes the specified percentile value for a variable within an ordered partition. Returns the first sorted value with cumulative distribution greater than or equal to the percentile. –> learn more
PERCENTILE_DISC(@variable, @literal[ @ignore_null NULLS])
Return type
float
Parameters
Last updated
Was this helpful?