first_value, last_value

BigQueryDb2 (LUW)MariaDBMySQLOracle DBPostgreSQLSQL ServerSQLite200520072009201120132015201720192021⚠ 3.25.0 - 3.39.0c⊘ 3.5.7 - 3.23.1⚠ 2012 - 2019c⊘ 2008R2⚠ 8.4 - 14c⊘ 8.3✓ 11gR2+c⚠ 11gR1c⚠ 8.0.11 - 8.0.30c⊘ 5.0 - 5.7⚠ 10.2 - 10.9.2c⊘ 5.1 - 10.1⚠ 9.7 - 11.5.7b⚠ 2.0a
  1. Proprietary nulls treatment: first_value(<expr> IGNORE NULLS) (no comma)
  2. Proprietary nulls treatment: first_value(<expr>, 1, null, 'IGNORE NULLS') (it’s a string argument)
  3. No ignore nulls