log(<base>, <value>)

BigQueryDb2 (LUW)MariaDBMySQLOracle DBPostgreSQLSQL ServerSQLite200520072009201120132015201720192021⊘ 3.5.7 - 3.40.0⊘ 2008R2 - 2022a✓ 8.4+⊘ 8.3✓ 11gR1+✓ 5.0+✓ 5.1+⊘ 9.7 - 11.5.7⊘ 2.0
  1. SQL Server expects the arguments in reverse order: LOG(<value>, <base>)