lead and lag

BigQueryDb2 (LUW)MariaDBMySQLOracle DBPostgreSQLSQL ServerSQLite200720092011201320152017201920212023⚠ 3.25.0 - 3.50.0b⊘ 3.5.7 - 3.23.1✓ 2022+b⚠ 2012 - 2019ab⚠ 8.4 - 17b⊘ 8.3✓ 19c - 23.9⚠ 11gR1ab⚠ 8.0.11 - 9.4.0ae⊘ 5.0 - 5.7⚠ 10.2 - 12.0.2bd⊘ 5.1 - 10.1⚠ 9.7 - 12.1.2ac⚠ 2.0a⚠ 2.0d⚠ 2.0abd
  1. No negative offsets
  2. No respect|ignore nulls
  3. Proprietary nulls treatment: lead(<expr>, 'IGNORE NULLS') (it’s a string argument)
  4. No default possible (3rd argument)
  5. No ignore nulls