8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 20:43:02 +01:00
firebird-mirror/doc/sql.extensions/README.aggregate_functions.md
2023-09-18 07:51:41 -03:00

471 B

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