Top-level fetch first in views

BigQueryDb2 (LUW)MariaDBMySQLOracle DBPostgreSQLSQL ServerSQLite20092011201320152017201920212023⊘ 3.5.7 - 3.50.0⚠ 2017 - 2022bc⊘ 2008R2✓ 8.4 - 17⊘ 8.3✓ 12cR1 - 23.9⊘ 11gR1 - 11gR2⊘ 5.0 - 9.3.0✓ 10.6 - 12.0.2⊘ 5.1 - 10.5⊘ 10.5 - 12.1.2a⊘ 9.7⊘ 2.0
  1. Use nested query: CREATE VIEW … AS SELECT … FROM (SELECT … FROM … FETCH FIRST …) t
  2. Requires offset (e.g. offset 0 rows)
  3. Requires order by