Returns the first non-NULL value evaluated against the nth row (offset) in its ordered frame.Syntax nth_value (x, offset) OVER ([[PARTITION BY grouping_column] [ORDER BY sorting_column] [ROWS, RANGE, or GROUPS expression_to_bound_rows_withing_the_group]] | [window_name])FROM table_nameWINDOW window_name as ([[PARTITION BY grouping_column] [ORDER BY sorting_column]) The first non-NULL value evaluated against the nth…
