any_value(…) filter(…) over(…)
BigQuery
H2
MySQL
Oracle DB
PostgreSQL
2013
2015
2017
2019
2021
2023
✓ 16 - 18
⊘ 8.3 - 15
⊘ 11gR1 - 23.26.0
⚡ 5.7 - 9.5.0
a
b
⊘ 5.0 - 5.6
✓ 2.2.220 - 2.4.240
⊘ 1.4.191 - 2.1.214
⊘ 2.0
⊘ 2.0
a
⊘ 2.0
a
⊘ 2.0
a
⚡Might return
null
even if there are non-
null
values
⚡
Not an aggregate function