Option 1: from clause

BigQueryDb2 (LUW)MariaDBMySQLOracle DBPostgreSQLSQL ServerSQLite200520072009201120132015201720192021⊘ 3.5.7 - 3.40.0⚠ 2008R2 - 2022c✓ 8.3+b⊘ 11gR1 - 21c⚠ 8.0.11 - 8.0.31⊘ 5.0 - 5.7a⊘ 5.1 - 10.10✓ 9.7+⊘ 2.0
  1. Only for derived tables. Since MySQL 8.0
  2. Accepts a <derived column list> with fewer columns than the base table has
  3. Not for regular tables or views