8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 23:23:02 +01:00
firebird-mirror/doc/sql.extensions/README.aggregate_functions.md

25 lines
471 B
Markdown
Raw Normal View History

# Aggregate Functions
## ANY_VALUE (Firebird 6.0)
`ANY_VALUE` is a non-deterministic aggregate function that returns its expression for an arbitrary
record from the grouped rows.
`NULLs` are ignored. It's returned only in the case of none evaluated records having a non-null value.
Syntax:
```
<any value> ::= ANY_VALUE(<expression>)
```
Example:
```
select department,
any_value(employee) employee
from employee_department
group by department
```