FIRST_VALUE

Returns the first value of the window.

ParameterTypeDescription
value
any
The name of the column to evaluate
Returns: any

Example

query:

SELECT account, create_date, order_value, FIRST_VALUE(order_value) OVER (PARTITION BY account ORDER BY create_date)
  FROM jun_2017_orders

result:

account create_date order_value first_value
Betasoloin 2017-06-03 5100 5100
Betasoloin 2017-06-04 2887 5100
Betasoloin 2017-06-06 4492 5100
Betasoloin 2017-06-09 5182 5100
Betasoloin 2017-06-24 1036 5100
Gekko & Co 2017-06-02 5304 5304
Gekko & Co 2017-06-11 1075 5304
Gekko & Co 2017-06-12 1062 5304
Gekko & Co 2017-06-14 497 5304
Gekko & Co 2017-06-19 67 5304
Gekko & Co 2017-06-25 5031 5304
Gekko & Co 2017-06-26 5622 5304