Lead und Lag

BigQueryDb2 (LUW)DuckDBH2MariaDBMySQLOracle DBPostgreSQLSQL ServerSQLite200720092011201320152017201920212023⚠ 3.25.0 - 3.51.0b⊘ 3.5.7 - 3.23.1✓ 2022 - 2025b⚠ 2012 - 2019ab⚠ 8.4 - 18b⊘ 8.3✓ 19c - 23.26.0⚠ 11gR1ab⚠ 8.0.11 - 9.5.0ae⊘ 5.0 - 5.7⚠ 10.2 - 12.1.2bd⊘ 5.1 - 10.1✓ 1.4.198 - 2.4.240a⊘ 1.4.191 - 1.4.197⚠ 1.0.0 - 1.4.0f⚠ 9.7 - 12.1.2ac⚠ 2.0a⚠ 2.0d⚠ 2.0abd
  1. Keine negativen Offset-Werte
  2. Kein Respect|Ignore Nulls
  3. Proprietäre Null-Behandlung: lead(<expr>, 'IGNORE NULLS') (ein String-Argument)
  4. Kein Default-Wert möglich (kein drittes Argument)
  5. Kein Ignore Nulls
  6. Proprietäre Null-Behandlung: lead(<expr> IGNORE NULLS) (kein Komma)